Skip to content

Generic argument list incorrectly allowed on member #74857

@hamishknight

Description

@hamishknight

This is incorrectly allowed to compile:

let x = "".count<Array>

Metadata

Metadata

Assignees

Labels

accepts invalidBug: Accepts invalidbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfexpressionsFeature: expressionsgenericsFeature: generic declarations and typesliteralsFeature → expressions: Literals such as an integer or string literalregressionswift 6.0type checkerArea → compiler: Semantic analysis

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions