summaryrefslogtreecommitdiff
path: root/test/files/neg/delayed-init-ref.flags
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-04-22 09:54:59 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-04-23 09:12:03 +0200
commitd3aa9a7639c3c26b42a8faa9566d0d43a998b723 (patch)
tree4ac01a84c73fb4056cd7cd979481f4b887c93227 /test/files/neg/delayed-init-ref.flags
parent5147bb278c326e60956bac93cba95d4e07d95e84 (diff)
downloadscala-d3aa9a7639c3c26b42a8faa9566d0d43a998b723.tar.gz
scala-d3aa9a7639c3c26b42a8faa9566d0d43a998b723.tar.bz2
scala-d3aa9a7639c3c26b42a8faa9566d0d43a998b723.zip
Warn on selection of vals from DelayedInit subclasses.
Which are likely to yield null, if the program didn't start. This is a common source of confusion for people new to the language, as was seen during the Coursera course. The test case shows that the usage pattern within Specs2 won't generate these warnings.
Diffstat (limited to 'test/files/neg/delayed-init-ref.flags')
-rw-r--r--test/files/neg/delayed-init-ref.flags1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/neg/delayed-init-ref.flags b/test/files/neg/delayed-init-ref.flags
new file mode 100644
index 0000000000..7949c2afa2
--- /dev/null
+++ b/test/files/neg/delayed-init-ref.flags
@@ -0,0 +1 @@
+-Xlint -Xfatal-warnings