diff options
Diffstat (limited to 'test/files/neg/forward.scala')
-rwxr-xr-x | test/files/neg/forward.scala | 24 |
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; + } +} |