Status: New
Owner: ----
Labels: Type-Defect Priority-Unassigned
New issue 22426 by
jp_menet...@yahoo.fr: Enum can not be imported in
another dart file
https://code.google.com/p/dart/issues/detail?id=22426
In File 1: "TestEnum.dart"
enum TestEnum {
VAL1,
VAL2
}
In File 2: "UseEnum.dart"
import 'TestEnum.dart'; // Error on this line : Unused import
void testEnum() {
TestEnum v = TestEnum.VAL1; // Error on this line : Undefined
class 'TestEnum'
}
So importing a file with an enum and use it does not work.
(same test with a class works of course)
Dart Editor version 1.8.5.release (STABLE)
Dart SDK version 1.8.5
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings