import statement pathname can cause incorrect Type resolution #37245
Labels
legacy-area-analyzer
Use area-devexp instead.
P4
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Using Dart version: 2.3.0-dev.0.5.flutter-a1668566e5 (Tue Apr 30 20:35:41 2019 +0200) on "macos_x64"
Attached .ZIP contains a tiny set of Dart files and a main() method to print stuff to the console. Basically, if you have 2 different Dart files reference a class and you add 2 slashes in the pathname in the import statement, it will throw off the ability to correctly type-check the class in the other file.
Notice the 2 slashes in the import statement below (this is what causes the issue):
bin/main.dart
bin/another_class.dart
bin/some_classes/some_classes.dart
I am not certain but this may be related to this issue.
classname_clash.zip
The text was updated successfully, but these errors were encountered: