Skip to content

Commit a496a54

Browse files
committed
add message feature cases.
1 parent 7c60ef1 commit a496a54

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pkg/front_end/messages.status

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,11 @@ ForInLoopNotAssignable/part_wrapped_statement: Fail
369369
ForInLoopNotAssignable/statement: Fail
370370
ForInLoopTypeNotIterablePartNullability/example: Fail # Cannot occur but needed for symmetry with ForInLoopTypeNotIterableNullability
371371
ForInLoopWithConstVariable/example: Fail
372+
FunctionAsTypeParameter/analyzerCode: Fail
372373
FunctionTypeDefaultValue/example: Fail
373374
FunctionTypedParameterVar/part_wrapped_script1: Fail
374375
FunctionTypedParameterVar/script1: Fail
376+
FunctionUsedAsDec/analyzerCode: Fail
375377
GeneratorReturnsValue/example: Fail
376378
GetterNotFound/example: Fail
377379
GetterWithFormals/example: Fail

pkg/front_end/messages.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,9 +1799,17 @@ NotAPrefixInTypeAnnotation:
17991799
18001800
FunctionUsedAsDec:
18011801
template: "'Function' is a built-in identifier, could not used as a #name name."
1802+
script:
1803+
- class Function {}
1804+
- extension Function on int {}
1805+
- mixin Function {}
18021806

18031807
FunctionAsTypeParameter:
18041808
template: "'Function' is a built-in identifier, could not used as a type identifier."
1809+
script:
1810+
- class C<Function> {}
1811+
- mixin A<Function> {}
1812+
- extension A<Function> on List<Function> {}
18051813

18061814
UnresolvedPrefixInTypeAnnotation:
18071815
template: "'#name.#name2' can't be used as a type because '#name' isn't defined."

0 commit comments

Comments
 (0)