summaryrefslogtreecommitdiff
path: root/test/files/neg/logImplicits.scala
diff options
context:
space:
mode:
authoraleksandar <aleksandar@lampmac14.epfl.ch>2012-01-12 15:04:04 +0100
committeraleksandar <aleksandar@lampmac14.epfl.ch>2012-01-12 15:04:04 +0100
commitaa568432a102287881a2a524f340926c1698165b (patch)
tree76daa35c30ac692e204d0e2314b475521397251c /test/files/neg/logImplicits.scala
parentd43d5e5e22e61061cd84ab8b69b237249a519994 (diff)
parent986bbb0914bde62978b18a3dc395b45e993a5812 (diff)
downloadscala-aa568432a102287881a2a524f340926c1698165b.tar.gz
scala-aa568432a102287881a2a524f340926c1698165b.tar.bz2
scala-aa568432a102287881a2a524f340926c1698165b.zip
Merge branch 'execution-context' of github.com:phaller/scala into execution-context
Conflicts: .gitignore
Diffstat (limited to 'test/files/neg/logImplicits.scala')
-rw-r--r--test/files/neg/logImplicits.scala25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/files/neg/logImplicits.scala b/test/files/neg/logImplicits.scala
new file mode 100644
index 0000000000..fb5dd8a025
--- /dev/null
+++ b/test/files/neg/logImplicits.scala
@@ -0,0 +1,25 @@
+class A {
+ def f(xs: Array[Byte]) = xs.size
+ def g(xs: Array[Byte]) = xs.length
+}
+
+class B {
+ def f = "abc" map (_ + 1)
+}
+
+object C {
+ final val x = "abc"
+
+ implicit def convert(p: x.type): Int = 123
+
+ math.max(122, x: Int)
+}
+
+class D {
+ def f = (1 -> 2) + "c"
+}
+
+class Un {
+ // forcing post-typer failure, since we're only interested in the output from the above
+ def unimplemented: Int
+} \ No newline at end of file