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
defcouldBeNull:String|Null= …
if couldBeNull ==nullthen-1else couldBeNull.length
Output
-- Error: <redacted>/app.scala:16:7
16 | if couldBeNull == null then -1 else couldBeNull.length
| ^^^^^^^^^^^^^^^^^^^
| Values of types Null | String and Null cannot be compared with == or !=
one error found
one error found
Expectation
no error found
The text was updated successfully, but these errors were encountered:
Which version are you using, and what error are you getting?
The code can be compiled with explicit nulls on my side.
Oh I remember the original issue is related to strictEquality.
Since that featurn is not actively maintained, we don't have any comment for this behaviour.
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.0-RC1
Compiler settings
flags: -Yexplicit-nulls + -language:strictEquality
Minimized code
Output
Expectation
no error found
The text was updated successfully, but these errors were encountered: