diff options
author | odersky <odersky@gmail.com> | 2016-07-15 13:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-15 13:11:52 +0200 |
commit | 409c6c30c8496529aace68967acccf88850145da (patch) | |
tree | 56fd30bbb5d108b895982da72943e649a58fbd40 /tests/pending | |
parent | 1c02c56213cf22010c0aef1dc1446300fe8005fe (diff) | |
parent | 894c9fbf247765041fc32788c78b85f1b2b2a191 (diff) | |
download | dotty-409c6c30c8496529aace68967acccf88850145da.tar.gz dotty-409c6c30c8496529aace68967acccf88850145da.tar.bz2 dotty-409c6c30c8496529aace68967acccf88850145da.zip |
Merge pull request #1343 from dotty-staging/change-hk-direct2
Direct representation of higher-kinded types
Diffstat (limited to 'tests/pending')
-rw-r--r-- | tests/pending/pos/apply-equiv.scala | 14 | ||||
-rw-r--r-- | tests/pending/pos/i1181.scala | 12 |
2 files changed, 14 insertions, 12 deletions
diff --git a/tests/pending/pos/apply-equiv.scala b/tests/pending/pos/apply-equiv.scala new file mode 100644 index 000000000..f53b8b5ab --- /dev/null +++ b/tests/pending/pos/apply-equiv.scala @@ -0,0 +1,14 @@ +class Test { + + class Lambda { type Arg; type Apply } + + type T1 = (Lambda { type Arg = Int } { type Apply = List[Arg] }) # Apply + type T2 = List[Int] + + var x: T1 = _ + var y: T2 = _ + + x = y + y = x + +} diff --git a/tests/pending/pos/i1181.scala b/tests/pending/pos/i1181.scala deleted file mode 100644 index 057c938d3..000000000 --- a/tests/pending/pos/i1181.scala +++ /dev/null @@ -1,12 +0,0 @@ -object Test { - def foo[M[_]](x: M[Int]) = x - - type Alias[A] = (A, A) - val x: Alias[Int] = (1, 2) - - foo[Alias](x) // ok - foo(x) // ok in scalac but fails in dotty with: - // error: type mismatch: - // found : (Int, Int) - // required: M[Int] -} |