diff options
author | Martin Odersky <odersky@gmail.com> | 2012-09-24 16:49:15 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-10-03 13:44:16 +0200 |
commit | ea9e4ec55ebb5dd6aaf22862622add7608e3f7a0 (patch) | |
tree | eca1373dff02f6b835f62cdee3028e3de60c8d09 /test/files | |
parent | ef934492df93e0fd3d78e7a3d4f9cccaf765d4d5 (diff) | |
download | scala-ea9e4ec55ebb5dd6aaf22862622add7608e3f7a0.tar.gz scala-ea9e4ec55ebb5dd6aaf22862622add7608e3f7a0.tar.bz2 scala-ea9e4ec55ebb5dd6aaf22862622add7608e3f7a0.zip |
Fixed problem in SI-6408
Fixed problem reported in comment, where inner classes of value classe caused a compiler crash.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t6408.scala | 11 |
1 files changed, 11 insertions, 0 deletions
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) +} |