You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constant folding should be able to handle Null and Unit.
Possible use cases
classA[T]:valx:TobjectBextendsA[Unit]:valx:Unit= ()
objectCextendsA[Null]:valx:Null= ()
deftest1=B.x // should be constant folded to `()`deftest2=C.x // should be constant folded to `null`
inlinevaln=nullinlinevalu= ()
deftest1= n // should be constant folded to `null`deftest2= u // should be constant folded to `()`
The text was updated successfully, but these errors were encountered:
Compiler version
3.0.0-RC3
Expectation
Constant folding should be able to handle
Null
andUnit
.Possible use cases
The text was updated successfully, but these errors were encountered: