summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2016-10-10 12:05:17 -0500
committerGitHub <noreply@github.com>2016-10-10 12:05:17 -0500
commitd7fe04993e10750c308e44b0fe563bcd3b0714ad (patch)
tree82151ad481ca720b17b29fbe15adf0b790c0d8f4 /test/files/run
parent876401bbe7071083325e33c902e94abd93b0b60b (diff)
parente794e513264373bc73b0b338cb1fef647984e26a (diff)
downloadscala-d7fe04993e10750c308e44b0fe563bcd3b0714ad.tar.gz
scala-d7fe04993e10750c308e44b0fe563bcd3b0714ad.tar.bz2
scala-d7fe04993e10750c308e44b0fe563bcd3b0714ad.zip
Merge pull request #5452 from lrytz/sd242
Fix the interface flag when re-writing a closure call to the body method
Diffstat (limited to 'test/files/run')
-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
+}