We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovered in scala/collection-strawman#117 (comment): The following simplified version compiles on Scala 2.13.0-M1 but fails on Dotty master:
trait Iterable2[A] { def flatMap[B](f: A => B): Iterable2[B] = ??? } trait SortedMap2[K, V] extends Iterable2[(K, V)] { def flatMap[K2, V2](f: ((K, V)) => (K2, V2))(implicit ordering: Ordering[K2]): SortedMap2[K2, V2] = ??? def foo: SortedMap2[Int, Int] = flatMap { kv => (0, 0) } }
The failure is:
scala> trait SortedMap2[K, V] extends Iterable2[(K, V)] { def flatMap[K2, V2](f: ((K, V)) => (K2, V2))(implicit ordering: Ordering[K2]): SortedMap2[K2, V2] = ??? def foo: SortedMap2[Int, Int] = flatMap { kv => (0, 0) } } -- [E080] Syntax Error: <console>:7:48 ----------------------------------------- 7 | def foo: SortedMap2[Int, Int] = flatMap { kv => (0, 0) } | ^^ | missing parameter type for parameter kv, expected = ?
The text was updated successfully, but these errors were encountered:
762ebbf
Merge pull request #2868 from dotty-staging/fix-#2867
9e1ed7a
Fix #2866: Handle partial functions in preTypeArgs
No branches or pull requests
Discovered in scala/collection-strawman#117 (comment): The following simplified version compiles on Scala 2.13.0-M1 but fails on Dotty master:
The failure is:
The text was updated successfully, but these errors were encountered: