diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-09-23 01:46:32 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-09-23 01:46:32 -0700 |
commit | 26420f469ebab27a644473c50ca2ac69b02e0314 (patch) | |
tree | ad28e836bc4e1c74c54aa6ef6dc41550af68b637 /test/files | |
parent | 469d303d7b0b052880f0365f304ca7df09148ec4 (diff) | |
parent | 3d7f84e83b85f26f1ae84acdd7edcfddeefc6322 (diff) | |
download | scala-26420f469ebab27a644473c50ca2ac69b02e0314.tar.gz scala-26420f469ebab27a644473c50ca2ac69b02e0314.tar.bz2 scala-26420f469ebab27a644473c50ca2ac69b02e0314.zip |
Merge pull request #2974 from retronym/ticket/7864
SI-7864 Harden "looks like an interpolated String" warning
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t7864.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t7864.scala | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t7864.flags b/test/files/pos/t7864.flags new file mode 100644 index 0000000000..7ccd56103a --- /dev/null +++ b/test/files/pos/t7864.flags @@ -0,0 +1 @@ +-Xlint
\ No newline at end of file diff --git a/test/files/pos/t7864.scala b/test/files/pos/t7864.scala new file mode 100644 index 0000000000..b2d8911a17 --- /dev/null +++ b/test/files/pos/t7864.scala @@ -0,0 +1,5 @@ +object Test { + val f = 0; + ({ toString; (x: Any) => x})("$f ") +} + |