Skip to content

Commit 9691608

Browse files
Update i8188 tests to the "using" syntax
1 parent d32547e commit 9691608

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/pos/i8188a.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Test {
22
extension StrDeco on (tree: String) {
3-
def show(given DummyImplicit): String = ???
4-
def show(color: Boolean)(given DummyImplicit): String = ???
3+
def show(using DummyImplicit): String = ???
4+
def show(color: Boolean)(using DummyImplicit): String = ???
55
}
66

77
val a: String = "foo".show

tests/pos/i8188b.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Foo {
2-
def f(x: String)(given DummyImplicit): String = x * 2
3-
def f(x: String)(color: Boolean)(given DummyImplicit): String = x * 3
2+
def f(x: String)(using DummyImplicit): String = x * 2
3+
def f(x: String)(color: Boolean)(using DummyImplicit): String = x * 3
44
}
55

66
@main def Test = println(new Foo().f("foo"))

tests/pos/i8188c.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Foo {
2-
def f(x: String)(given DummyImplicit): String = x * 2
3-
def f(x: String)(given DummyImplicit)(color: Boolean): String = x * 3
2+
def f(x: String)(using DummyImplicit): String = x * 2
3+
def f(x: String)(using DummyImplicit)(color: Boolean): String = x * 3
44
}
55

66
@main def Test = println(new Foo().f("foo"))

0 commit comments

Comments
 (0)