Skip to content

Potentially wrong type of a formal argument in a patterns test #1618

@chloestefantsova

Description

@chloestefantsova

In the following test the function test expects a List as the parameter, but then the parameter is matched agains map patterns. It seems that the type of the formal parameter was supposed to be Map.

String test(List list) {
switch (list) {
case <int, num>{1: > 0 || -42}:

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