From c66898e5be37d88efd75af76f5a078820ae6c4e0 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Fri, 9 Jul 2010 09:51:06 +0000 Subject: close #3648. --- test/files/run/names-defaults.scala | 5 +++++ test/files/run/t3648.check | 1 + test/files/run/t3648.scala | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 test/files/run/t3648.check create mode 100644 test/files/run/t3648.scala (limited to 'test/files') diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index f197d2ff11..8ddfcd950d 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -345,6 +345,11 @@ object Test extends Application { (new t3338.Test).a + // subclassing and defaults in both class constructors + class CBLAH(val x: Int = 1) + class DBLAH(val y: String = "2") extends CBLAH() + (new DBLAH()) + // DEFINITIONS def test1(a: Int, b: String) = println(a +": "+ b) diff --git a/test/files/run/t3648.check b/test/files/run/t3648.check new file mode 100644 index 0000000000..5f7559f647 --- /dev/null +++ b/test/files/run/t3648.check @@ -0,0 +1 @@ +kult diff --git a/test/files/run/t3648.scala b/test/files/run/t3648.scala new file mode 100644 index 0000000000..91927d6d6d --- /dev/null +++ b/test/files/run/t3648.scala @@ -0,0 +1,10 @@ +object Test { + class C(val s: String = "") + object C extends C() { + override def toString() = "kult" + } + + def main(args: Array[String]) { + println(C) + } +} -- cgit v1.2.3