Commit 8f57ade
committed
Turn off F-bound wildcard skolemizatiuon under Scala-2 mode
With skolemization we fail compiling the standard lib with:
```
[E057] Type Mismatch Error: /Users/odersky/workspace/dotty/tests/scala2-library/src/library/scala/collection/generic/ParMapFactory.scala:28:76
28 |abstract class ParMapFactory[CC[X, Y] <: ParMap[X, Y] with ParMapLike[X, Y, CC[X, Y], _]]
| ^
|Type argument CC[X, Y] does not conform to upper bound scala.collection.parallel.ParMapLike[X, Y, LazyRef(CC[X, Y]),
| collection.parallel.ParMapLike[X, Y, CC[X, Y], _]#Sequential
|] & scala.collection.parallel.ParMap[X, Y]
--
```
I have no idea whether this bound is correct or not, and am not inclined to find out. But we clearly have to support it
anyway under Scala-2 mode.1 parent 841975b commit 8f57ade
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
0 commit comments