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
typemismatch;
found : scala.collection.immutable.Set[Playground.Foo[T]]
required: Playground.FooTrie[T]
Expectation
This compiles without -Xsource:3 and it compiled under 2.13.8 with -Xsource:3. It will also compile fine override def empty = FooTrie.empty[T] is changed to override def empty: FooTrie[T] = FooTrie.empty[T]
scala/scala#10160 seems like a possible candidate based on the fact that it is specific to -Xsource:3.
The text was updated successfully, but these errors were encountered:
Compiler version
2.13.8 (with
-Xsource:3
).Tested with Scastie using options:
Minimized code
Output
Expectation
This compiles without
-Xsource:3
and it compiled under 2.13.8 with-Xsource:3
. It will also compile fineoverride def empty = FooTrie.empty[T]
is changed tooverride def empty: FooTrie[T] = FooTrie.empty[T]
scala/scala#10160 seems like a possible candidate based on the fact that it is specific to
-Xsource:3
.The text was updated successfully, but these errors were encountered: