Skip to content

Message formatting when using @nowarn("verbose") #22412

Closed
@lrytz

Description

@lrytz
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportingError reporting including formatting, implicit suggestions, etcgood first issuePerfect for someone who wants to get started contributingitype:bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions