diff options
Diffstat (limited to 'tests/pending/pos/subtyping.scala')
-rw-r--r-- | tests/pending/pos/subtyping.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pending/pos/subtyping.scala b/tests/pending/pos/subtyping.scala new file mode 100644 index 000000000..8a3c2eb03 --- /dev/null +++ b/tests/pending/pos/subtyping.scala @@ -0,0 +1,12 @@ +object test { + + class B + class C + + def tag[T](x: T): String & T = ??? + + val x: Int & String = tag(0) + +} + + |