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
inlinedefn=nullinlinedeff=inlineif n ==nullthen0else1inlinedefm=inline n match { casenull=>0; case _ =>1 }
@main defmain=
println(f) // error
println(m)
Output
[error] 6 | println(f)
[error] | ^
[error] |Cannot reduce `inline if` because its condition is not a constant value: (null:Null).==(null)
[error] | This location contains code that was inlined from x.scala:2
[error] one error found