summaryrefslogtreecommitdiff
path: root/test/files/neg/divergent-implicit.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-04-04 18:00:26 +0000
committerMartin Odersky <odersky@gmail.com>2008-04-04 18:00:26 +0000
commitf9a68fb01de1edd3fa620912bbe75897133cc81b (patch)
treeb75321225503a24060ce665cdbeb3e1c95d7eb09 /test/files/neg/divergent-implicit.check
parent768d107385af8f700be33b22444e537091d7f0ef (diff)
downloadscala-f9a68fb01de1edd3fa620912bbe75897133cc81b.tar.gz
scala-f9a68fb01de1edd3fa620912bbe75897133cc81b.tar.bz2
scala-f9a68fb01de1edd3fa620912bbe75897133cc81b.zip
(1) more changes for dynamic cycle detection of...
(1) more changes for dynamic cycle detection of implicits 2) change (to wildcard scoping in types 3) suppress $tag generation for purely (abstract traits 4) increase stacksize for sabbus to 32m (otherwise (problems on Windows)
Diffstat (limited to 'test/files/neg/divergent-implicit.check')
-rw-r--r--test/files/neg/divergent-implicit.check17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/divergent-implicit.check b/test/files/neg/divergent-implicit.check
new file mode 100644
index 0000000000..8d57f92716
--- /dev/null
+++ b/test/files/neg/divergent-implicit.check
@@ -0,0 +1,17 @@
+divergent-implicit.scala:4: error: diverging implicit expansion for type (Int) => B
+starting with method cast in object Test1
+ val x1: String = 1
+ ^
+divergent-implicit.scala:5: error: diverging implicit expansion for type (Int) => String
+starting with method cast in object Test1
+ val x2: String = cast[Int, String](1)
+ ^
+divergent-implicit.scala:14: error: diverging implicit expansion for type (Test2.Baz) => Test2.Bar
+starting with method baz2bar in object Test2
+ val x: Bar = new Foo
+ ^
+divergent-implicit.scala:15: error: diverging implicit expansion for type (Test2.Foo) => Test2.Bar
+starting with method foo2bar in object Test2
+ val y: Bar = new Baz
+ ^
+four errors found