summaryrefslogtreecommitdiff
path: root/test/pending/pos/those-kinds-are-high.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-23 10:59:55 -0800
committerPaul Phillips <paulp@improving.org>2012-02-23 11:06:14 -0800
commit622656dfc87100bc94a37f3b244955c96d526023 (patch)
tree1832c7de4759defc03266e32c33b887554a69647 /test/pending/pos/those-kinds-are-high.scala
parent119c9554cf948163433ab12ce8cdd36814f63e4a (diff)
downloadscala-622656dfc87100bc94a37f3b244955c96d526023.tar.gz
scala-622656dfc87100bc94a37f3b244955c96d526023.tar.bz2
scala-622656dfc87100bc94a37f3b244955c96d526023.zip
Moved and edited tests.
Remove obsolete, move passing pending -> files, update those-kinds-are-high with some new info, added a couple new ones to pending.
Diffstat (limited to 'test/pending/pos/those-kinds-are-high.scala')
-rw-r--r--test/pending/pos/those-kinds-are-high.scala18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/pending/pos/those-kinds-are-high.scala b/test/pending/pos/those-kinds-are-high.scala
index 3012e72d7e..434e64cefb 100644
--- a/test/pending/pos/those-kinds-are-high.scala
+++ b/test/pending/pos/those-kinds-are-high.scala
@@ -27,11 +27,27 @@ class A {
//
// List[Container[String] with Template[Container[Any] with Template[Container[Any] with Template[Any]]]
//
+ // *** Update 2/24/2012
+ //
+ // Hey, now there are polytypes in the inferred type.
+ // Not sure if that is progress or regress.
+ //
+ // test/pending/pos/those-kinds-are-high.scala:36: error: type mismatch;
+ // found : C1[String]
+ // required: ScalaObject with Container[String] with Template[ScalaObject with Container with Template[ScalaObject with Container with Template[[X]Container[X]]]]
+ // def fFail = List(new C1[String], new C2[String])
+ // ^
+ // test/pending/pos/those-kinds-are-high.scala:36: error: type mismatch;
+ // found : C2[String]
+ // required: ScalaObject with Container[String] with Template[ScalaObject with Container with Template[ScalaObject with Container with Template[[X]Container[X]]]]
+ // def fFail = List(new C1[String], new C2[String])
+ // ^
+ // two errors found
/** Working version explicitly typed.
*/
def fExplicit = List[Template[Container] with Container[String]](new C1[String], new C2[String])
// nope
- // def fFail = List(new C1[String], new C2[String])
+ def fFail = List(new C1[String], new C2[String])
}