summaryrefslogtreecommitdiff
path: root/test/files/neg/t4271.scala
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/files/neg/t4271.scala
parent8a2b5f762ddcf5e6dcb58f3b7ca75529266d3ebd (diff)
downloadscala-273cc667228f21cc25bf7c34a1d41935b55ed9c6.tar.gz
scala-273cc667228f21cc25bf7c34a1d41935b55ed9c6.tar.bz2
scala-273cc667228f21cc25bf7c34a1d41935b55ed9c6.zip
Test case for already closed SI-4271.
Diffstat (limited to 'test/files/neg/t4271.scala')
-rw-r--r--test/files/neg/t4271.scala12
1 files changed, 12 insertions, 0 deletions
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
+}