diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-12-02 16:20:48 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-12-02 16:20:48 +0000 |
commit | 5697e1115b8895e06cb91a4a6e70d0f73e5aa9ab (patch) | |
tree | 333c3c667d46c7c2e3313d938432b752fb9b4ea2 /test/files | |
parent | e4af2ce209abd7565bb45eae1b80ec798b813035 (diff) | |
download | scala-5697e1115b8895e06cb91a4a6e70d0f73e5aa9ab.tar.gz scala-5697e1115b8895e06cb91a4a6e70d0f73e5aa9ab.tar.bz2 scala-5697e1115b8895e06cb91a4a6e70d0f73e5aa9ab.zip |
another test for #2489
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/names-defaults.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index 0d4f3df42e..7e6fcf3f3c 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -268,6 +268,15 @@ object Test extends Application { // #2489 class A2489 { def foo { def bar(a: Int = 1) = a; bar(); val u = 0 } } + // a bug reported on the mailing lists, related to #2489 + class Test2489 { + def foo(): Int = { + val i = 10 + case class Foo(j: Int) + i + } + } + // DEFINITIONS def test1(a: Int, b: String) = println(a +": "+ b) def test2(u: Int, v: Int)(k: String, l: Int) = println(l +": "+ k +", "+ (u + v)) |