summaryrefslogtreecommitdiff
path: root/test/files/neg/forward.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-02-17 14:17:25 +0000
committerMartin Odersky <odersky@gmail.com>2006-02-17 14:17:25 +0000
commit6b1d01b1b28d965586a54c1f4c1fe3adfc36545b (patch)
tree24829de1bfb3d9b4c7c10919edeb0dc263262479 /test/files/neg/forward.scala
parent22245600a5d413876dfbf110c0a6f80719f8168e (diff)
downloadscala-6b1d01b1b28d965586a54c1f4c1fe3adfc36545b.tar.gz
scala-6b1d01b1b28d965586a54c1f4c1fe3adfc36545b.tar.bz2
scala-6b1d01b1b28d965586a54c1f4c1fe3adfc36545b.zip
Diffstat (limited to 'test/files/neg/forward.scala')
-rwxr-xr-xtest/files/neg/forward.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/files/neg/forward.scala b/test/files/neg/forward.scala
new file mode 100755
index 0000000000..5e21e4c1fe
--- /dev/null
+++ b/test/files/neg/forward.scala
@@ -0,0 +1,24 @@
+object Test {
+ def f: int = x;
+ val x: int = f;
+
+ {
+ def f: int = x;
+ val x: int = f;
+ }
+ {
+ def f: int = g;
+ val x: int = f;
+ def g: int = x;
+ }
+ {
+ def f: int = g;
+ var x: int = f;
+ def g: int = x;
+ }
+ {
+ def f: int = g;
+ System.out.println("foo");
+ def g: int = f;
+ }
+}