summaryrefslogtreecommitdiff
path: root/test/files/neg/case-collision.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-04 09:55:21 -0800
committerPaul Phillips <paulp@improving.org>2012-12-05 09:40:16 -0800
commite4d1d930693ac75d8eb64c2c3c69f2fc22bec739 (patch)
tree6baec81832c0b3379bb757e2dd503a8387822762 /test/files/neg/case-collision.check
parentfd57069a3a49de1757a518b573a0cd8cb98bbbd5 (diff)
downloadscala-e4d1d930693ac75d8eb64c2c3c69f2fc22bec739.tar.gz
scala-e4d1d930693ac75d8eb64c2c3c69f2fc22bec739.tar.bz2
scala-e4d1d930693ac75d8eb64c2c3c69f2fc22bec739.zip
Warn when generated classfiles differ only in case.
We should most likely prohibit it completely, but warning is a start.
Diffstat (limited to 'test/files/neg/case-collision.check')
-rw-r--r--test/files/neg/case-collision.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/case-collision.check b/test/files/neg/case-collision.check
new file mode 100644
index 0000000000..4edc6f1205
--- /dev/null
+++ b/test/files/neg/case-collision.check
@@ -0,0 +1,10 @@
+case-collision.scala:5: error: Class foo.BIPPY differs only in case from foo.Bippy. Such classes will overwrite one another on case-insensitive filesystems.
+class BIPPY
+ ^
+case-collision.scala:11: error: Class foo.HyRaX$ differs only in case from foo.Hyrax$. Such classes will overwrite one another on case-insensitive filesystems.
+object HyRaX
+ ^
+case-collision.scala:8: error: Class foo.DINGO$ differs only in case from foo.Dingo$. Such classes will overwrite one another on case-insensitive filesystems.
+object DINGO
+ ^
+three errors found