diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-29 17:55:03 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-29 17:55:03 +0200 |
commit | 878b55a95b3567cd2d83753208ea3c43c9cb6434 (patch) | |
tree | 10774599fb9354a4cc8030c4c89fb4c61ee58c14 /tests/run | |
parent | c65504d92444ffb63b385aaa0900f08912033f74 (diff) | |
download | dotty-878b55a95b3567cd2d83753208ea3c43c9cb6434.tar.gz dotty-878b55a95b3567cd2d83753208ea3c43c9cb6434.tar.bz2 dotty-878b55a95b3567cd2d83753208ea3c43c9cb6434.zip |
Bring back disabled test.
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/innerObject.check | 2 | ||||
-rw-r--r-- | tests/run/innerObject.scala | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/run/innerObject.check b/tests/run/innerObject.check new file mode 100644 index 000000000..1191247b6 --- /dev/null +++ b/tests/run/innerObject.check @@ -0,0 +1,2 @@ +1 +2 diff --git a/tests/run/innerObject.scala b/tests/run/innerObject.scala new file mode 100644 index 000000000..5a5ece416 --- /dev/null +++ b/tests/run/innerObject.scala @@ -0,0 +1,24 @@ +object Test { + def foo(x: Int) = { + println(x) + } + + def outer(x: Int) = { + def inner() = { + foo(x) + } + inner() + } + + def outer2(x: Int) = { + def inner2() = { + Test.foo(x) + } + inner2() + } + + def main(args: Array[String]): Unit = { + outer(1) + outer2(2) + } +} |