summaryrefslogtreecommitdiff
path: root/test/files/pos/t7322.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t7322.scala')
-rw-r--r--test/files/pos/t7322.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t7322.scala b/test/files/pos/t7322.scala
new file mode 100644
index 0000000000..006bf89e9f
--- /dev/null
+++ b/test/files/pos/t7322.scala
@@ -0,0 +1,11 @@
+
+package object t7322 {
+ implicit class X(sc: StringContext) {
+ def x_?(args: Any*) = "hi there"
+ }
+}
+package t7322 {
+ trait Y {
+ x_?"junk" // assume that if it compiles, it works
+ }
+}