summaryrefslogtreecommitdiff
path: root/test/files/neg/t5639b/A_2.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-11-09 18:30:23 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-11-18 11:14:37 +1000
commita77f01f546312cf6601f03794f909a09d34c5445 (patch)
treedcf3859e10c4bf8d53052222bfb7fff1c23be253 /test/files/neg/t5639b/A_2.scala
parent90a98f7c41cfcfdb60dc25db5ac33d0d0ff10f99 (diff)
downloadscala-a77f01f546312cf6601f03794f909a09d34c5445.tar.gz
scala-a77f01f546312cf6601f03794f909a09d34c5445.tar.bz2
scala-a77f01f546312cf6601f03794f909a09d34c5445.zip
SI-5639 Predicate bug fix on -Xsource:2.12
To be conservative, I've predicated this fix in `-Xsource:2.12`. This is done in separate commit to show that the previous fix passes the test suite, rather than just tests with `-Xsource:2.12`.
Diffstat (limited to 'test/files/neg/t5639b/A_2.scala')
-rw-r--r--test/files/neg/t5639b/A_2.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t5639b/A_2.scala b/test/files/neg/t5639b/A_2.scala
new file mode 100644
index 0000000000..2bb36273e0
--- /dev/null
+++ b/test/files/neg/t5639b/A_2.scala
@@ -0,0 +1,11 @@
+import Implicits._
+
+class Baz
+
+object Test {
+ implicitly[Int]
+}
+
+object Implicits {
+ implicit val Baz: Int = 0
+}