summaryrefslogtreecommitdiff
path: root/test/files/pos/t8146a.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-01-20 06:56:12 -0800
committerJason Zaugg <jzaugg@gmail.com>2014-01-20 06:56:12 -0800
commitd9ee69ff38bc1f6fc511a9cea6fd6305e3dd89c5 (patch)
tree372031b7b13249461a50f954ade19ceed1ef05e4 /test/files/pos/t8146a.scala
parent338b053563e6c57eec157bc19697349782475926 (diff)
parentff137422794a3da002bcad9b67afd3ef02fceaa1 (diff)
downloadscala-d9ee69ff38bc1f6fc511a9cea6fd6305e3dd89c5.tar.gz
scala-d9ee69ff38bc1f6fc511a9cea6fd6305e3dd89c5.tar.bz2
scala-d9ee69ff38bc1f6fc511a9cea6fd6305e3dd89c5.zip
Merge pull request #3367 from retronym/backport/3363
[nomaster] Fix non-deterministic <:< for deeply nested types
Diffstat (limited to 'test/files/pos/t8146a.scala')
-rw-r--r--test/files/pos/t8146a.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t8146a.scala b/test/files/pos/t8146a.scala
new file mode 100644
index 0000000000..e4eb8d3fd1
--- /dev/null
+++ b/test/files/pos/t8146a.scala
@@ -0,0 +1,9 @@
+trait M[+A]
+
+object Test {
+ type Inty = Int
+ def t1(
+ x: M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[Int @unchecked]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
+ ): M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[M[Inty @unchecked]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
+ = x
+}