Closed
Description
minimized code
/*
Using compiler flag -Yexplicit-nulls, the following snippet fails compilation with
[error] 4 | "hello, world!".split(" ").map(_.length)
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] |value map is not a member of Array[String | UncheckedN
ull] | UncheckedNull
*/
"hello, world!".split(" ").map(_.length)
expectation
Extension methods/implicit conversions should be avaliable to unions of UncheckedNull