From c8683ff5bfd247972ba929496142d45e31c01ca5 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 7 Nov 2011 08:54:57 +0000 Subject: Fix crash with HK types. Another page in the storied history of "call .tpe when one should have called .tpeHK", in this case leading to a crash of stacktraciness. Closes SI-5152, review by moors. --- test/files/neg/t5152.scala | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/files/neg/t5152.scala (limited to 'test/files/neg/t5152.scala') diff --git a/test/files/neg/t5152.scala b/test/files/neg/t5152.scala new file mode 100644 index 0000000000..5efc76af24 --- /dev/null +++ b/test/files/neg/t5152.scala @@ -0,0 +1,17 @@ +object Test { + new C + new C1 + new C2 + + class A[E[_]] { } + class B[E[_]] extends A[B] { } // B is depth 2 but A requires 1 + class C extends B { } + + class A1[E[F[G[_]]]] { } + class B1[E[_]] extends A1[B1] // B1 is depth 2 but A1 requires 3 + class C1 extends B1 { } + + class A2[E[_]] { } + class B2[E] extends A2[B2] { } // this one is correct + class C2 extends B2 { } +} -- cgit v1.2.3