shiika icon indicating copy to clipboard operation
shiika copied to clipboard

Fix return value of void methods

Open yhara opened this issue 4 years ago • 1 comments

This should be valid:

def foo; end
a = foo  # a is the instance of Void

cf.

let a = ();   // Unit type

yhara avatar Aug 07 '20 10:08 yhara

This should be achieved not by returning Void from every method (especially methods written in Rust), inserting Hir::ConstRef.

yhara avatar May 13 '23 08:05 yhara