From 2414bfeda301410fe64f8adddd22a24a15621850 Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Mon, 6 Jun 2016 17:44:28 +0200 Subject: Fix issue with GADT not typechecking without bind in match --- tests/pos/i1307.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i1307.scala (limited to 'tests/pos') 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 + } +} -- cgit v1.2.3