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 c7c3170 commit 707f0c9Copy full SHA for 707f0c9
tests/neg/i24745.scala
@@ -0,0 +1,17 @@
1
+extension (s: String)
2
+ def f_::(using DummyImplicit): String = s.reverse // error
3
+ def g_::(x: (suffix: String, n: Int)): String = s"$s${x.suffix * x.n}"
4
+ def ok_::(using suffix: String, n: Int): String = s"$s${suffix * n}" // error
5
+ def no_::(suffix: String, n: Int): String = s"$s${suffix * n}" // error
6
+
7
+@main def Test =
8
+ println:
9
+ "hello, world".f_::
10
11
+ (suffix = "s", n = 3).g_::("hello, world")
12
13
+ "hello, world" g_:: ("s", 3)
14
15
+ given String = "s"
16
+ given Int = 3
17
+ "hello, world".ok_::
0 commit comments