Closed
Description
class C:
@annotation.nowarn("v") def f = try 1
shows
-- [E002] Syntax Warning: /Users/luc/code/scala/scala13/sandbox/A.scala:2:34 ---
2 | @annotation.nowarn("v") def f = try 1
| ^^^^^
| A try without catch or finally is equivalent to putting
| its body in a block; no exceptions are handled.
Matching filters for @nowarn or -Wconf:
- id=E2
- name=EmptyCatchAndFinallyBlock
|
| longer explanation available when compiling with `-explain`
The |
margin is missing.