adriaanm/scala-dev — pull request #14 by namin (2011-10-25 11:25:20+00:00)
Title: reified new should be nestable

See the test cases in the commit. They currently fail as follows:

```testing: [...]/files/pos/virtnew_nested_abstracttpe.scala [FAILED]
virtnew_nested_abstracttpe.scala:7: error: type mismatch;
found : Foo.this.JSLiteral {}
required: Foo.this.Rep[Foo.this.JSLiteral{val a: Int}]
val bar = new JSLiteral {
^
one error found

...
Possible compiler crash during test of: files/pos/virtnew_nested.scala
java.lang.AssertionError: assertion failed: $anon.super.this()
at scala.Predef$.assert(Predef.scala:160)
at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:254)
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:1245)
at scala.reflect.api.Trees$Transformer$$anonfun$transformStats$1.apply(Trees.scala:1243)
at scala.collection.immutable.List.loop$1(List.scala:150)
at scala.collection.immutable.List.mapConserve(List.scala:166)

...

2 of 2 tests failed (elapsed time: 00:00:03)```

CC: @gkossakowski