Skip to content

Add warning on double suppression #11112

Description

@timotheeguerin

When the same code is suppressed twice on the same node we should add a warning

model Test {
  #suppress "deprecated" "Msg"
  #suppress "deprecated" "Msg"
  prop: Dep;
}

with or without message

Metadata

Metadata

Labels

compiler:coreIssues for @typespec/compilerfeatureNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions