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
inferred existential type Array[Array[O1.type]] forSome { val O1: AnyRef }, which cannot be expressed by wildcards, should be enabled
by making the implicit value scala.language.existentials visible.
----
This can be achieved by adding the import clause 'import scala.language.existentials'
or by setting the compiler option -language:existentials.
See the Scaladoc for value scala.language.existentials for a discussion
why the feature should be explicitly enabled.
Compiler version
3.1.0
Minimized code
https://scastie.scala-lang.org/8WGftp2KTAmmjTZdIqZduw
Output
Expectation
It should compile.
Note that the same code compiles in Scala 2 with warnings
https://scastie.scala-lang.org/QDjOfT5RTleWMtlhRot12A
Workaround
The following code compiles:
The text was updated successfully, but these errors were encountered: