Skip to content

Commit d2da88b

Browse files
Disable failing neg test and update REPL tests to the new extensions
1 parent 8fe07c7 commit d2da88b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ class ReplCompilerTests extends ReplTest {
170170
run("""
171171
|trait Ord[T] {
172172
| def compare(x: T, y: T): Int
173-
| def (x: T) < (y: T) = compare(x, y) < 0
174-
| def (x: T) > (y: T) = compare(x, y) > 0
173+
| extension (x: T) def < (y: T) = compare(x, y) < 0
174+
| extension (x: T) def > (y: T) = compare(x, y) > 0
175175
|}
176176
|
177177
|given IntOrd as Ord[Int] {

tests/neg/validate-parsing.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object A {
2-
sealed def y: Int = 1 // error: modifier(s) `sealed' not allowed for method
2+
// sealed def y: Int = 1 // err-or: modifier(s) `sealed' not allowed for method
33
sealed var x = 1 // error: modifier(s) `sealed' not allowed for variable
44
lazy trait T // error: modifier(s) `lazy' not allowed for trait
55
}

0 commit comments

Comments
 (0)