diff options
author | Paul Phillips <paulp@improving.org> | 2012-06-12 19:28:59 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-06-12 19:28:59 -0700 |
commit | 039d826e99519bcf363e92bba7d9a5bc82e708ef (patch) | |
tree | 2a8a5c244af94d6b23f554fd30032a9145b9d40f /test | |
parent | 87e23f5f523fc1c5b6ece12f6a812f26820e4da7 (diff) | |
download | scala-039d826e99519bcf363e92bba7d9a5bc82e708ef.tar.gz scala-039d826e99519bcf363e92bba7d9a5bc82e708ef.tar.bz2 scala-039d826e99519bcf363e92bba7d9a5bc82e708ef.zip |
Suppress non-local return unchecked warnings.
There doesn't seem to be any way to do that by adding
a synthetic annotation.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/nonlocal-unchecked.flags | 1 | ||||
-rw-r--r-- | test/files/pos/nonlocal-unchecked.scala | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/nonlocal-unchecked.flags b/test/files/pos/nonlocal-unchecked.flags new file mode 100644 index 0000000000..144ddac9d3 --- /dev/null +++ b/test/files/pos/nonlocal-unchecked.flags @@ -0,0 +1 @@ +-unchecked -Xfatal-warnings diff --git a/test/files/pos/nonlocal-unchecked.scala b/test/files/pos/nonlocal-unchecked.scala new file mode 100644 index 0000000000..6bd3dc479e --- /dev/null +++ b/test/files/pos/nonlocal-unchecked.scala @@ -0,0 +1,6 @@ +class A { + def f: Boolean = { + val xs = Nil map (_ => return false) + true + } +} |