diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/jvm/annotations.scala | 3 | ||||
-rw-r--r-- | test/files/run/names-defaults.scala | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/jvm/annotations.scala b/test/files/jvm/annotations.scala index 227bd919c1..12760beb4e 100644 --- a/test/files/jvm/annotations.scala +++ b/test/files/jvm/annotations.scala @@ -160,6 +160,9 @@ object Test5 { } } +// #3345 +class A3345(@volatile private var i:Int) + object Test { def main(args: Array[String]) { Test1.run diff --git a/test/files/run/names-defaults.scala b/test/files/run/names-defaults.scala index 3442ecafc3..ee9186c35f 100644 --- a/test/files/run/names-defaults.scala +++ b/test/files/run/names-defaults.scala @@ -324,6 +324,27 @@ object Test extends Application { } } + // #3344 + def m3344_1 = { case class C(x: Int); C(1).copy(2).x } + m3344_1 + def m3344_2 = { class C(val x: Int = 1); new C().x } + m3344_2 + + // #3338 + object t3338 { + class Container { + class GenericClass[T](arg: String = "") + } + + object Container extends Container + + class Test { + val a = new Container.GenericClass() + } + } + (new t3338.Test).a + + // DEFINITIONS def test1(a: Int, b: String) = println(a +": "+ b) |