Skip to content

Go to Imports with static declarations not working #59823

Closed
@FMorschel

Description

@FMorschel

Repro:

a.dart

class A {
  static const a = 1;
}

main.dart

import 'a.dart';

void foo(A a) {}

void bar() {
  A.a;
}

On foo parameter, I can use the Go to Imports command, but not inside bar.

I'll work on this.

CC @DanTup


Edit

Continued work for #56584.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestlegacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions