summaryrefslogtreecommitdiff
path: root/test/files/pos/t7864.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-22 10:32:43 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-09-22 10:32:43 +0200
commit3d7f84e83b85f26f1ae84acdd7edcfddeefc6322 (patch)
tree8e0f9abc5c381ba6bfe34a785c0c8aab0303fe0a /test/files/pos/t7864.scala
parent65817bd2b71f5ea0e39af1b1c2b085562cd8e925 (diff)
downloadscala-3d7f84e83b85f26f1ae84acdd7edcfddeefc6322.tar.gz
scala-3d7f84e83b85f26f1ae84acdd7edcfddeefc6322.tar.bz2
scala-3d7f84e83b85f26f1ae84acdd7edcfddeefc6322.zip
SI-7864 Harden "looks like an interpolated String" warning
We can't rely on the qualifier of an `Apply` having a non-null symbol in general.
Diffstat (limited to 'test/files/pos/t7864.scala')
-rw-r--r--test/files/pos/t7864.scala5
1 files changed, 5 insertions, 0 deletions
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 ")
+}
+