Skip to content

No error on type argument after constructor name with implicit new #34270

Closed
@askeksa-google

Description

@askeksa-google

This program gives no error in the analyzer:

class Foo<X> {
  Foo.bar();
}

main() {
  Foo.bar<int>();
}

See also #34159

Metadata

Metadata

Assignees

Labels

legacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions