Skip to content

LanguageFeatures/Patterns/switch_statement_A07_t02 #1746

@alexmarkov

Description

@alexmarkov

This test passes List<int> to a cast pattern as num which causes an exception at run time:

Expect.equals("match", test([1, 2]));

case var c as num when c == 11:

Metadata

Metadata

Assignees

Labels

bad-testReport tests in need of updates. When closed, the tests should be considered good

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions