Open abeln opened 6 years ago
The following should typecheck, but currently doesn't:
class Foo { val x: String|Null = "hello" val res: String = x match { case null => "it's null" case s => s } }
The current workaround is to annotate s:
s
class Foo { val x: String|Null = "hello" val res: String = x match { case null => "it's null" case s: String => s } }
The following should typecheck, but currently doesn't:
The current workaround is to annotate
s
: