Closed
Description
This is a simplification of an issue encountered with generated FIDL2 bindings in Fuchsia. It blocks enabling Dart 2 in Fuchsia.
import 'dart:math' as math;
class Foo {
List<math.Point> math;
}
main() {
print(new Foo());
}
works in Dart, but in Dart 2 yields
a.dart:4:8: Error: 'math.Point' can't be used as a type because 'math' doesn't refer to an import prefix.
List<math.Point> math;
^^^^^^^^^^