icnahom · GitHub

Describe the bug
Highlighting error: Generic get function is treated as keyword when proving the generic type.

To Reproduce
Take this code snippet:

void main() {
  get();
  get<int>();
}
void get<T>() {}

Expected behavior
Having consistent highlighting that resembles a method instead of a keyword.

Screenshots
image

Please complete the following information:

You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.

  • Operating System and version: "Windows 10 Pro" 10.0 (Build 22635)
  • VS Code version: win 1.85.2
  • Dart extension version: 3.80.0
  • Dart/Flutter SDK version: 3.2.3/3.16.3
  • Target device (if the issue relates to Flutter debugging):

Read the original on github.com ↗