diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-22 00:42:39 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-06-22 00:42:39 -0700 |
commit | cfc0e18dc55b33274c1275c192ade4a8d707d635 (patch) | |
tree | ed500a8374b7911fe3b6a7443784764fcd231022 /test/files/continuations-neg | |
parent | ff016002738580a7de11977c91e0061dbcf270ad (diff) | |
parent | 7d8527b40a3bd6d93cf155b39ee50577751f3e91 (diff) | |
download | scala-cfc0e18dc55b33274c1275c192ade4a8d707d635.tar.gz scala-cfc0e18dc55b33274c1275c192ade4a8d707d635.tar.bz2 scala-cfc0e18dc55b33274c1275c192ade4a8d707d635.zip |
Merge pull request #752 from retronym/topic/warn-catch-all-4
SI-2807 Resurrect and refine the promiscuous catch warning.
Diffstat (limited to 'test/files/continuations-neg')
-rw-r--r-- | test/files/continuations-neg/trycatch2.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/continuations-neg/trycatch2.scala b/test/files/continuations-neg/trycatch2.scala index d61419169b..d329a3b530 100644 --- a/test/files/continuations-neg/trycatch2.scala +++ b/test/files/continuations-neg/trycatch2.scala @@ -12,7 +12,7 @@ object Test { fatal[Int] cpsIntStringInt } catch { - case ex => + case ex: Throwable => cpsIntStringInt } @@ -20,7 +20,7 @@ object Test { fatal[Int] cpsIntStringInt } catch { - case ex => + case ex: Throwable => cpsIntStringInt } @@ -30,4 +30,4 @@ object Test { println(reset { foo2; "3" }) } -}
\ No newline at end of file +} |