summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-01-20 12:25:48 -0800
committerPaul Phillips <paulp@improving.org>2012-01-20 15:45:17 -0800
commit273cc667228f21cc25bf7c34a1d41935b55ed9c6 (patch)
tree51ec330b452a5e68843e176951c36539c35f0448 /test
parent8a2b5f762ddcf5e6dcb58f3b7ca75529266d3ebd (diff)
downloadscala-273cc667228f21cc25bf7c34a1d41935b55ed9c6.tar.gz
scala-273cc667228f21cc25bf7c34a1d41935b55ed9c6.tar.bz2
scala-273cc667228f21cc25bf7c34a1d41935b55ed9c6.zip
Test case for already closed SI-4271.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t4271.check10
-rw-r--r--test/files/neg/t4271.scala12
2 files changed, 22 insertions, 0 deletions
diff --git a/test/files/neg/t4271.check b/test/files/neg/t4271.check
new file mode 100644
index 0000000000..91d9fbcfa1
--- /dev/null
+++ b/test/files/neg/t4271.check
@@ -0,0 +1,10 @@
+t4271.scala:9: error: value to is not a member of Int
+ 3 to 5
+ ^
+t4271.scala:10: error: value ensuring is not a member of Int
+ 5 ensuring true
+ ^
+t4271.scala:11: error: value -> is not a member of Int
+ 3 -> 5
+ ^
+three errors found
diff --git a/test/files/neg/t4271.scala b/test/files/neg/t4271.scala
new file mode 100644
index 0000000000..50526c8958
--- /dev/null
+++ b/test/files/neg/t4271.scala
@@ -0,0 +1,12 @@
+object foo {
+ object Donotuseme
+ implicit def any2Ensuring[A](x: A) = Donotuseme
+ implicit def doubleWrapper(x: Int) = Donotuseme
+ implicit def floatWrapper(x: Int) = Donotuseme
+ implicit def intWrapper(x: Int) = Donotuseme
+ implicit def longWrapper(x: Int) = Donotuseme
+ implicit def any2ArrowAssoc[A](x: A) = Donotuseme
+ 3 to 5
+ 5 ensuring true
+ 3 -> 5
+}