summaryrefslogtreecommitdiff
path: root/test/files/neg/warn-inferred-any.check
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-10 09:05:29 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-10 09:05:29 -0700
commit7dd0ead39ceb7cd6f445d86f37c68b78218eef57 (patch)
tree61a10ec88c12546ccf44dbe653fec42a8429d203 /test/files/neg/warn-inferred-any.check
parentc0d5f0aaddc7bc309f84afd5d4f4b5c136c65816 (diff)
parenteb2375cc5327293c708226e78f80a97cc780a12f (diff)
downloadscala-7dd0ead39ceb7cd6f445d86f37c68b78218eef57.tar.gz
scala-7dd0ead39ceb7cd6f445d86f37c68b78218eef57.tar.bz2
scala-7dd0ead39ceb7cd6f445d86f37c68b78218eef57.zip
Merge pull request #1109 from paulp/topic/warn-inferred-any
Warn when Any or AnyVal is inferred.
Diffstat (limited to 'test/files/neg/warn-inferred-any.check')
-rw-r--r--test/files/neg/warn-inferred-any.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/warn-inferred-any.check b/test/files/neg/warn-inferred-any.check
new file mode 100644
index 0000000000..8c18616b6f
--- /dev/null
+++ b/test/files/neg/warn-inferred-any.check
@@ -0,0 +1,10 @@
+warn-inferred-any.scala:8: error: a type was inferred to be `Any`; this may indicate a programming error.
+ { List(1, 2, 3) contains "a" } // only this warns
+ ^
+warn-inferred-any.scala:16: error: a type was inferred to be `AnyVal`; this may indicate a programming error.
+ { 1l to 5l contains 5 }
+ ^
+warn-inferred-any.scala:17: error: a type was inferred to be `AnyVal`; this may indicate a programming error.
+ { 1l to 5l contains 5d }
+ ^
+three errors found