diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/gadts2.scala (renamed from tests/pending/pos/gadts2.scala) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pending/pos/gadts2.scala b/tests/pos/gadts2.scala index b67bafb32..71089c0f7 100644 --- a/tests/pending/pos/gadts2.scala +++ b/tests/pos/gadts2.scala @@ -8,9 +8,9 @@ object Test { case class Cell[a](var x: a) extends Term[a] final case class NumTerm(val n: Number) extends Term[Number] - def f[a](t: Term[a], c: Cell[a]): Unit = { + def f[A](t: Term[A], c: Cell[A]): Unit = { t match { - case NumTerm(n) => c.x = MyDouble(1.0) + case NumTerm(n) => c.x = MyDouble(1.0) // problem is: this assignment is not type correct, since gadt variable is forgotten } } |