diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-10-09 01:31:13 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-10-09 01:31:13 -0700 |
commit | 185ff4c929645a14fcfe77b6bcdea2bc28ece100 (patch) | |
tree | 9e3d37e8a950ac446b94d71d60b43d618a1fccb5 /test/files/neg/t7899.scala | |
parent | acd77803f7da7c369f4ffdc70b5eeec4a23e35ae (diff) | |
parent | 8ed7099f7db6a1060a490a594c958ca9a8b41487 (diff) | |
download | scala-185ff4c929645a14fcfe77b6bcdea2bc28ece100.tar.gz scala-185ff4c929645a14fcfe77b6bcdea2bc28ece100.tar.bz2 scala-185ff4c929645a14fcfe77b6bcdea2bc28ece100.zip |
Merge pull request #3022 from retronym/ticket/7899
Don't infer by-name types during, e.g. eta-expansion
Diffstat (limited to 'test/files/neg/t7899.scala')
-rw-r--r-- | test/files/neg/t7899.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t7899.scala b/test/files/neg/t7899.scala new file mode 100644 index 0000000000..f2dea3ab1f --- /dev/null +++ b/test/files/neg/t7899.scala @@ -0,0 +1,7 @@ +object Test { + def foo[B](f: (=> Int) => B): () => B = () => f(0) + + def main(args: Array[String]) { + foo(identity)() + } +} |