summaryrefslogtreecommitdiff
path: root/test/files/neg/t2405.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t2405.scala')
-rw-r--r--test/files/neg/t2405.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t2405.scala b/test/files/neg/t2405.scala
new file mode 100644
index 0000000000..6982285b98
--- /dev/null
+++ b/test/files/neg/t2405.scala
@@ -0,0 +1,10 @@
+object A { implicit val x: Int = 1 }
+
+// Expecting shadowing #1
+object Test2 {
+ {
+ import A.{x => y}
+ def y: Int = 0
+ implicitly[Int]
+ }
+}