diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-10-27 14:37:44 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-10-27 16:08:15 +1000 |
commit | 639e52ae7e128025f6eb57957a590b808d83a9a4 (patch) | |
tree | 19958923ec2beea7b770ccf2197fef6930e830f1 /test/files/pos/t9178b.scala | |
parent | b194a4e7230334e441cd31b617fdce8e329dfa3a (diff) | |
download | scala-639e52ae7e128025f6eb57957a590b808d83a9a4.tar.gz scala-639e52ae7e128025f6eb57957a590b808d83a9a4.tar.bz2 scala-639e52ae7e128025f6eb57957a590b808d83a9a4.zip |
SI-9178 Don't eta expand param-less method types to SAMs
Otherwise, we can end up with a subtle source incompatibility with
the pre-SAM regime. Arguably we should phase out eta expansion to
Function0 as well, but I'll leave that for another day.
Diffstat (limited to 'test/files/pos/t9178b.scala')
-rw-r--r-- | test/files/pos/t9178b.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/t9178b.scala b/test/files/pos/t9178b.scala new file mode 100644 index 0000000000..cbeaed4f17 --- /dev/null +++ b/test/files/pos/t9178b.scala @@ -0,0 +1,7 @@ +abstract class Test{ + val writeInput: java.io.OutputStream => Unit + def getOutputStream(): java.io.OutputStream + + writeInput(getOutputStream) +} + |