Skip to content

Add support for treating generic method parameters as dynamic in all contexts #27460

Closed
@leafpetersen

Description

@leafpetersen

The current implementation of generic method syntax in the VM and dart2js treats generic type parameters as malformed types, which get mapped to dynamic in some (but not all) contexts. In particular, they are not usable in is or as checks. In order to remove the comment syntax fully from strong mode, we will need an option in the VM and dart2js to enable a mode in which all uses of generic method parameters are mapped to dynamic.

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions