File tree 5 files changed +12
-4
lines changed
compiler/src/dotty/tools/dotc/core/tasty
5 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -699,7 +699,7 @@ class TreePickler(pickler: TastyPickler) {
699
699
case ex : AssertionError =>
700
700
println(i " error when pickling tree $tree" )
701
701
throw ex
702
- case ex : MatchError =>
702
+ case ex : MatchError =>
703
703
println(i " error when pickling tree $tree" )
704
704
throw ex
705
705
}
Original file line number Diff line number Diff line change 1
1
object Main {
2
2
def mkArray [T <: A ]: T # AType // error // error
3
- mkArray[Array ] // was: "assertion failed: invalid prefix HKTypeLambda..."
4
- val x = mkArray[Array ]
3
+ mkArray[Array ] // was: "assertion failed: invalid prefix HKTypeLambda..." // error
4
+ val x = mkArray[Array ] // error
5
5
}
Original file line number Diff line number Diff line change
1
+ -- Error: tests/neg/i16842.scala:24:7 ----------------------------------------------------------------------------------
2
+ 24 | Liter(SemanticArray[SemanticInt.type], x) // error
3
+ | ^
4
+ | invalid new prefix (dim: Int): SemanticArray[SemanticInt.type] cannot replace ty.type in type ty.T
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ def typecheckArrayLiter(
21
21
a : ArrayLiter
22
22
): Liter [SemanticArray [SemanticType ]] = {
23
23
val x : List [Expr2 [SemanticInt .type ]] = List ()
24
- Liter (SemanticArray [SemanticInt .type ], x) // error // error
24
+ Liter (SemanticArray [SemanticInt .type ], x) // error
25
25
}
Original file line number Diff line number Diff line change
1
+ -- Error: tests/neg/i18058.scala:4:21 ----------------------------------------------------------------------------------
2
+ 4 |type G = (f: _ <: F) => f.A // error
3
+ | ^
4
+ | invalid new prefix <: F cannot replace f.type in type f.A
You can’t perform that action at this time.
0 commit comments