diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-03-28 16:27:13 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-03-29 13:34:51 +0200 |
commit | c8321d6a42348308feaf586380ef07ae24e420c8 (patch) | |
tree | f973c3990c99d65355c6ebd374b72e997a4c9440 /tests | |
parent | af4bb48a3e1f164f4f5fadd0ac0554f8e5e56081 (diff) | |
download | dotty-c8321d6a42348308feaf586380ef07ae24e420c8.tar.gz dotty-c8321d6a42348308feaf586380ef07ae24e420c8.tar.bz2 dotty-c8321d6a42348308feaf586380ef07ae24e420c8.zip |
Add test to check failure of non-tail recursive
Diffstat (limited to 'tests')
-rw-r--r-- | tests/partest-test/stackOverflow.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/partest-test/stackOverflow.scala b/tests/partest-test/stackOverflow.scala new file mode 100644 index 000000000..b3132cc19 --- /dev/null +++ b/tests/partest-test/stackOverflow.scala @@ -0,0 +1,7 @@ +object Test { + def foo: Int = bar + def bar: Int = foo + + def main(args: Array[String]): Unit = + println(foo) +} |