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 619f951 commit 428bddbCopy full SHA for 428bddb
tests/run/i8035.scala
@@ -0,0 +1,8 @@
1
+implicit class Ops[A](val a: String) extends AnyVal {
2
+ def foo(e: => String): Unit = ()
3
+}
4
+
5
+def bar(e: => String): Unit = (new Ops("")).foo(e)
6
+def baz(e: => String): Unit = "".foo(e)
7
8
+@main def Test = baz("")
0 commit comments