VariableElement.computeType does not use the right scope. #15700
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
VariableElement.computeType does not use the right scope since local declaration are not taken into accounter. For instance:
class Foo {}
void test(var o) {
String Foo;
void m(Foo foo) {}
}
Here the type of 'foo' will be the class 'Foo' and not the malformed type that is the reference of the local variable 'Foo'.
Attachment:
compute_type.dart (159 Bytes)
The text was updated successfully, but these errors were encountered: