summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-05-31 09:47:38 +0000
committerMartin Odersky <odersky@gmail.com>2006-05-31 09:47:38 +0000
commit23904f63552d7cb98865d5a07101e2e9795d2ad1 (patch)
tree897cd8dfd243c5921570ebd1c091c111cf146d5a /test/files/neg
parentcab784ad14708b1c2b95d8af44b20f802667e7b2 (diff)
downloadscala-23904f63552d7cb98865d5a07101e2e9795d2ad1.tar.gz
scala-23904f63552d7cb98865d5a07101e2e9795d2ad1.tar.bz2
scala-23904f63552d7cb98865d5a07101e2e9795d2ad1.zip
fixed bugs 616, 617
Diffstat (limited to 'test/files/neg')
-rwxr-xr-xtest/files/neg/bug126.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/bug126.scala b/test/files/neg/bug126.scala
new file mode 100755
index 0000000000..75c10e608a
--- /dev/null
+++ b/test/files/neg/bug126.scala
@@ -0,0 +1,8 @@
+class O {
+ val Bar:Any => Any = ((x:Any) => Bar(x));
+ val Tuple2(foo:(Any => Any), bar) = Tuple2((x:Any) => foo(x), 1);
+ {
+ val Tuple1(foo2:(Any => Any)) = Tuple1((x:Any) => foo2(x));
+ Console.println(foo2)
+ }
+}