aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/hygiene.scala
diff options
context:
space:
mode:
authorTobias Schlatter <tobias@meisch.ch>2014-03-20 20:23:02 +0100
committerTobias Schlatter <tobias@meisch.ch>2014-03-20 20:25:05 +0100
commite50646c21cbc842c1188fc876e16ea2b3e2a2ea3 (patch)
tree8355f0ef64102f569ebd970e49c2a591116d0b44 /tests/pos/hygiene.scala
parenta4516eac1be98830c99ea48e9baedf022dfcb9f7 (diff)
downloaddotty-e50646c21cbc842c1188fc876e16ea2b3e2a2ea3.tar.gz
dotty-e50646c21cbc842c1188fc876e16ea2b3e2a2ea3.tar.bz2
dotty-e50646c21cbc842c1188fc876e16ea2b3e2a2ea3.zip
Minor improvements to tests (remove old comments)
Diffstat (limited to 'tests/pos/hygiene.scala')
-rw-r--r--tests/pos/hygiene.scala12
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)