diff options
Diffstat (limited to 'tests/pos/hygiene.scala')
-rw-r--r-- | tests/pos/hygiene.scala | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/pos/hygiene.scala b/tests/pos/hygiene.scala index 25f234959..9bbf73c0f 100644 --- a/tests/pos/hygiene.scala +++ b/tests/pos/hygiene.scala @@ -1,24 +1,16 @@ -// Illustrates a failure with hygiene. +// Illustrates a use case where we need hygiene. object hygiene { class D[T] case class C[T](x: D[T]) -// gives +// without hygiene, this gave // 7: error: wrong number of type arguments for hygiene.C.D, should be 0 // 7: error: constructor C in class C does not take type parameters -// -// The second error message is straightforward to fix using a refTypeTree for C in -// desugar.classDef.classTypeRef, but the first one is much harder. - object C { - class C - -// class D - } val c = C.apply(new D) |