Skip to content

Commit 428bddb

Browse files
committed
Test case
1 parent 619f951 commit 428bddb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/run/i8035.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)