aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3999
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t3999')
-rw-r--r--tests/pos/t3999/a_1.scala9
-rw-r--r--tests/pos/t3999/b_2.scala7
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/t3999/a_1.scala b/tests/pos/t3999/a_1.scala
new file mode 100644
index 000000000..7ef67bba4
--- /dev/null
+++ b/tests/pos/t3999/a_1.scala
@@ -0,0 +1,9 @@
+package foo
+
+class Outside
+
+package object bar {
+ class Val(b: Boolean)
+ implicit def boolean2Val(b: Boolean): foo.bar.`package`.Val = new Val(b)
+ implicit def boolean2Outside(b: Boolean): foo.Outside = new Outside
+}
diff --git a/tests/pos/t3999/b_2.scala b/tests/pos/t3999/b_2.scala
new file mode 100644
index 000000000..775b839d9
--- /dev/null
+++ b/tests/pos/t3999/b_2.scala
@@ -0,0 +1,7 @@
+package foo
+package bar
+
+class A {
+ val s: Val = false
+ val o: Outside = false
+}