aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/logImplicits.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg-with-implicits/logImplicits.scala')
-rw-r--r--tests/untried/neg-with-implicits/logImplicits.scala25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/untried/neg-with-implicits/logImplicits.scala b/tests/untried/neg-with-implicits/logImplicits.scala
new file mode 100644
index 000000000..ecb4cbb31
--- /dev/null
+++ b/tests/untried/neg-with-implicits/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
+}