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>
26382638 if (name != null ) {
26392639 parameterType = calleeType.namedParameters[name];
26402640 if (parameterType == null ) {
2641- // TODO(paulberry )
2641+ // TODO(#42327 )
26422642 _unimplemented (expression, 'Missing type for named parameter' );
26432643 }
26442644 suppliedNamedParameters.add (name);
Original file line number Diff line number Diff line change @@ -207,6 +207,22 @@ void test(C c) {
207207 await _checkSingleFileChanges (content, expected);
208208 }
209209
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+
210226 Future <void > test_add_required () async {
211227 var content = '''
212228int f({String s}) => s.length;
You can’t perform that action at this time.
0 commit comments