aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/subtyping.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2015-02-07 18:03:01 +0100
committerodersky <odersky@gmail.com>2015-02-07 18:03:01 +0100
commit9641b2a417f203b5c2e88e6330b2230713471307 (patch)
tree7509a675738c13a428d2ecb5a371d242213a4849 /tests/pos/subtyping.scala
parent329b6bfa9929c984b40368a1cc5f2f8cdc15b6c8 (diff)
parent976ed6fd0aa4f0dd3da54889c4d85ef856f6531f (diff)
downloaddotty-9641b2a417f203b5c2e88e6330b2230713471307.tar.gz
dotty-9641b2a417f203b5c2e88e6330b2230713471307.tar.bz2
dotty-9641b2a417f203b5c2e88e6330b2230713471307.zip
Merge pull request #339 from dotty-staging/fix/#329-and-others
Fix/#329 and others
Diffstat (limited to 'tests/pos/subtyping.scala')
-rw-r--r--tests/pos/subtyping.scala29
1 files changed, 1 insertions, 28 deletions
diff --git a/tests/pos/subtyping.scala b/tests/pos/subtyping.scala
index 29d830dd2..e65bdd16f 100644
--- a/tests/pos/subtyping.scala
+++ b/tests/pos/subtyping.scala
@@ -1,32 +1,5 @@
-class A {
- def test1(): Unit = {
- implicitly[this.type <:< this.type]
- implicitly[this.type <:< A]
- }
-}
object test {
- def tag1[T](x: T): String & T = ???
- def tag2[T](x: T): T & String = ???
-
- val x1: Int & String = tag1(0)
- val x2: Int & String = tag2(0)
- val x3: String & Int = tag1(0)
- val x4: String & Int = tag2(0)
-
-}
-
-object test2 {
-
- class A
- class B
-
- val x: A | B = ???
- val y: B | A = x
-
- val a: A & B = ???
- val b: B & A = a
+ val x: Int = 1
}
-
-