diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-01-28 22:05:25 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-01-29 09:46:52 -0800 |
commit | b5e13c92691d3269fec7bcc065c43d85aceac276 (patch) | |
tree | 2d112094860feab70157a3b85501072b5ce0dd1b /test | |
parent | da929c86696787f91c1cee775b158faeb23a9b50 (diff) | |
download | scala-b5e13c92691d3269fec7bcc065c43d85aceac276.tar.gz scala-b5e13c92691d3269fec7bcc065c43d85aceac276.tar.bz2 scala-b5e13c92691d3269fec7bcc065c43d85aceac276.zip |
SI-7322 Interpolator idents must be encoded
Otherwise, they are not found.
This matters for term names with a differential encoding.
Footnote, normally ident() encodes, but INTERPOLATIONID
is !isIdent, so that is not used here. Maybe that would
be the better improvement.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t7322.scala | 11 |
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 + } +} |