dart-lang / dart-lang/language

Allow referencing type parameters in static fields

Open
#359 19 comments 20 reactions 0 assignees View on GitHub
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

Are there plans to allow referencing type parameters in static fields? It looks to be quite a limitation.

````dart
class A {
static List list; // Error: Static members can't reference type parameters of the class.
}
````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.