summaryrefslogtreecommitdiff
path: root/test/files/run/t5380.check
blob: 731a798301cb9d63f9c1860b7aa810221ef5684c (plain) (blame)
1
2
3
4
5
6
7
8
9
t5380.scala:3: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    val f = () => return try { 1 } catch { case _: Throwable => 0 }
                               ^
t5380.scala:3: warning: a pure expression does nothing in statement position; you may be omitting necessary parentheses
    val f = () => return try { 1 } catch { case _: Throwable => 0 }
                                                                ^
t5380.scala:3: warning: enclosing method main has result type Unit: return value discarded
    val f = () => return try { 1 } catch { case _: Throwable => 0 }
                  ^