We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
enum
camel_case_types
1 parent e823249 commit 8b56814Copy full SHA for 8b56814
pkg/linter/test/rules/camel_case_types_test.dart
@@ -31,6 +31,28 @@ augment class a { }
31
''');
32
}
33
34
+ @FailingTest(
35
+ issue: 'https://github.com/dart-lang/linter/issues/4881',
36
+ reason:
37
+ "ParserErrorCode.EXTRANEOUS_MODIFIER [27, 7, Can't have modifier 'augment' here.]")
38
+ test_augmentationEnum_lowerCase() async {
39
+ newFile('$testPackageLibPath/a.dart', r'''
40
+import augment 'test.dart';
41
+
42
+enum e {
43
+ a;
44
+}
45
+''');
46
47
+ await assertNoDiagnostics(r'''
48
+library augment 'a.dart';
49
50
+augment enum e {
51
+ augment b;
52
53
54
+ }
55
56
test_extensionType_lowerCase() async {
57
// No need to test all the variations. Name checking is shared with other
58
// declaration types.
0 commit comments