aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t4336.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t4336.scala')
-rw-r--r--tests/pending/pos/t4336.scala19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/pending/pos/t4336.scala b/tests/pending/pos/t4336.scala
deleted file mode 100644
index e10d00158..000000000
--- a/tests/pending/pos/t4336.scala
+++ /dev/null
@@ -1,19 +0,0 @@
-object Main {
- class NonGeneric {}
- class Generic[T] {}
-
- class Composite {
- def contains(setup : Composite => Unit) : Composite = this
- }
-
- def generic[T](parent: Composite): Generic[T] = new Generic[T]
- def nonGeneric(parent: Composite): NonGeneric = new NonGeneric
-
- new Composite().contains(
- nonGeneric // should have type Composite => NonGeneric
- )
-
- new Composite().contains(
- generic[Int] // should have type Composite => Generic[Int]
- )
-}