diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-10-10 12:05:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 12:05:17 -0500 |
commit | d7fe04993e10750c308e44b0fe563bcd3b0714ad (patch) | |
tree | 82151ad481ca720b17b29fbe15adf0b790c0d8f4 /test/files/run/sd242.scala | |
parent | 876401bbe7071083325e33c902e94abd93b0b60b (diff) | |
parent | e794e513264373bc73b0b338cb1fef647984e26a (diff) | |
download | scala-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/sd242.scala')
-rw-r--r-- | test/files/run/sd242.scala | 13 |
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 +} |