File tree Expand file tree Collapse file tree 5 files changed +12
-4
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 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) {
699699 case ex : AssertionError =>
700700 println(i " error when pickling tree $tree" )
701701 throw ex
702- case ex : MatchError =>
702+ case ex : MatchError =>
703703 println(i " error when pickling tree $tree" )
704704 throw ex
705705 }
Original file line number Diff line number Diff line change 11object Main {
22 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
55}
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(
2121 a : ArrayLiter
2222): Liter [SemanticArray [SemanticType ]] = {
2323 val x : List [Expr2 [SemanticInt .type ]] = List ()
24- Liter (SemanticArray [SemanticInt .type ], x) // error // error
24+ Liter (SemanticArray [SemanticInt .type ], x) // error
2525}
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