Skip to content

Commit 8a02865

Browse files
Update REPL tests to the new extensions
1 parent 3bb85e5 commit 8a02865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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] {

0 commit comments

Comments
 (0)