We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb85e5 commit 8a02865Copy full SHA for 8a02865
compiler/test/dotty/tools/repl/ReplCompilerTests.scala
@@ -170,8 +170,8 @@ class ReplCompilerTests extends ReplTest {
170
run("""
171
|trait Ord[T] {
172
| 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
+ | extension (x: T) def < (y: T) = compare(x, y) < 0
+ | extension (x: T) def > (y: T) = compare(x, y) > 0
175
|}
176
|
177
|given IntOrd as Ord[Int] {
0 commit comments