From ea9e4ec55ebb5dd6aaf22862622add7608e3f7a0 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 24 Sep 2012 16:49:15 +0200 Subject: Fixed problem in SI-6408 Fixed problem reported in comment, where inner classes of value classe caused a compiler crash. --- test/files/run/t6408.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/files/run/t6408.scala (limited to 'test') diff --git a/test/files/run/t6408.scala b/test/files/run/t6408.scala new file mode 100644 index 0000000000..ff17480b35 --- /dev/null +++ b/test/files/run/t6408.scala @@ -0,0 +1,11 @@ +class X(val i: Int) extends AnyVal { + class Inner(val q: Int) { + def plus = i + q + } +} + +object Test extends App { + val x = new X(11) + val i = new x.Inner(22) + assert(i.plus == 33) +} -- cgit v1.2.3