diff options
Diffstat (limited to 'tests/untried/pos/t8138.scala')
-rw-r--r-- | tests/untried/pos/t8138.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/untried/pos/t8138.scala b/tests/untried/pos/t8138.scala new file mode 100644 index 000000000..b98093095 --- /dev/null +++ b/tests/untried/pos/t8138.scala @@ -0,0 +1,24 @@ + +class U { + trait Transformer { + def transform(a: Tree): Tree = ??? + } + trait Tree +} + +object Test { + def m(u: U) = { + class C extends u.Transformer { + override def transform(t: u.Tree): u.Tree = { + null match { + case _ => + // crashes in GenICode: + // error: Unknown type: <notype>, <notype> [class scala.reflect.internal.Types$NoType$, class scala.reflect.internal.Types$NoType$] TypeRef? false + (y: Any) => super.transform(???) + null + } + ??? + } + } + } +} |