summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-06-12 19:28:59 -0700
committerPaul Phillips <paulp@improving.org>2012-06-12 19:28:59 -0700
commit039d826e99519bcf363e92bba7d9a5bc82e708ef (patch)
tree2a8a5c244af94d6b23f554fd30032a9145b9d40f /src
parent87e23f5f523fc1c5b6ece12f6a812f26820e4da7 (diff)
downloadscala-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 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Infer.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala
index 9e371dd2dd..688dcd91ac 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala
@@ -1276,7 +1276,8 @@ trait Infer {
} else {
for (arg <- args) {
if (sym == ArrayClass) check(arg, bound)
- else if (arg.typeArgs.nonEmpty) () // avoid spurious warnings with higher-kinded types
+ else if (arg.typeArgs.nonEmpty) () // avoid spurious warnings with higher-kinded types
+ else if (sym == NonLocalReturnControlClass) () // no way to suppress unchecked warnings on try/catch
else arg match {
case TypeRef(_, sym, _) if isLocalBinding(sym) =>
;