summaryrefslogtreecommitdiff
path: root/test/files/run/t7459c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t7459c.scala')
-rw-r--r--test/files/run/t7459c.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t7459c.scala b/test/files/run/t7459c.scala
new file mode 100644
index 0000000000..144c5d793b
--- /dev/null
+++ b/test/files/run/t7459c.scala
@@ -0,0 +1,16 @@
+class LM {
+ class Node[B1]
+
+ // crash
+ val g: (CC => Any) = {
+ case CC(tttt) =>
+ tttt.## // no crash
+ new tttt.Node[Any]()
+ }
+}
+
+object Test extends App {
+ new LM().g(new CC(new LM()))
+}
+case class CC(n: LM)
+