File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2638,7 +2638,7 @@ class EdgeBuilder extends GeneralizingAstVisitor<DecoratedType>
2638
2638
if (name != null ) {
2639
2639
parameterType = calleeType.namedParameters[name];
2640
2640
if (parameterType == null ) {
2641
- // TODO(paulberry )
2641
+ // TODO(#42327 )
2642
2642
_unimplemented (expression, 'Missing type for named parameter' );
2643
2643
}
2644
2644
suppliedNamedParameters.add (name);
Original file line number Diff line number Diff line change @@ -207,6 +207,22 @@ void test(C c) {
207
207
await _checkSingleFileChanges (content, expected);
208
208
}
209
209
210
+ @FailingTest (issue: 'https://github.com/dart-lang/sdk/issues/42327' )
211
+ // When fixing this issue, probably convert this to an edge builder test.
212
+ Future <void > test_migratedMethod_namedParameter () async {
213
+ var content = '''
214
+ void f(Iterable<int> a) {
215
+ a.toList(growable: false);
216
+ }
217
+ ''' ;
218
+ var expected = '''
219
+ void f(Iterable<int> a) {
220
+ a.toList(growable: false);
221
+ }
222
+ ''' ;
223
+ await _checkSingleFileChanges (content, expected);
224
+ }
225
+
210
226
Future <void > test_add_required () async {
211
227
var content = '''
212
228
int f({String s}) => s.length;
You can’t perform that action at this time.
0 commit comments