diff options
Diffstat (limited to 'tests/untried/pos/t7322.scala')
-rw-r--r-- | tests/untried/pos/t7322.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/t7322.scala b/tests/untried/pos/t7322.scala new file mode 100644 index 000000000..006bf89e9 --- /dev/null +++ b/tests/untried/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 + } +} |