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 `()`