Test case closes #1432, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25279 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
extempore 2011-07-13 06:58:39 +00:00
parent 5d8be99078
commit 3da87e0204
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,6 @@
bug1432.scala:10: error: type mismatch;
found : (Int, Bug_NoUnique.Wrap[Bug_NoUnique.Wrap[Unit]] => Double)
required: (Int, Unit => Double)
def test(x : TypeCon[Wrap[Unit]]) : TypeCon[Unit] = wrap(x)
^
one error found

View File

@ -0,0 +1,12 @@
object Bug_NoUnique {
type TypeCon[Env] = (Int, Env=>Double)
case class Wrap[E](parent:E) {}
def wrap[E,A,Y](v : (A,E=>Y)) : (A,Wrap[E]=>Y) =
throw new Error("Body here")
def test(x : TypeCon[Wrap[Unit]]) : TypeCon[Unit] = wrap(x)
}