diff options
Diffstat (limited to 'tests/pos/i1307.scala')
-rw-r--r-- | tests/pos/i1307.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i1307.scala b/tests/pos/i1307.scala new file mode 100644 index 000000000..1dd922321 --- /dev/null +++ b/tests/pos/i1307.scala @@ -0,0 +1,7 @@ +class Term[A] +class Number(val n: Int) extends Term[Int] +object Test { + def f[B](t: Term[B]): B = t match { + case y: Number => y.n + } +} |