summaryrefslogtreecommitdiff
path: root/test/files/run/sd242.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/sd242.scala')
-rw-r--r--test/files/run/sd242.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/sd242.scala b/test/files/run/sd242.scala
new file mode 100644
index 0000000000..acd51ec893
--- /dev/null
+++ b/test/files/run/sd242.scala
@@ -0,0 +1,13 @@
+trait T {
+ def test: Unit = {
+ byName("".toString)
+ ()
+ }
+
+ @inline
+ final def byName(action: => Unit) = action
+}
+
+object Test extends App {
+ (new T {}).test
+}