File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -258,13 +258,6 @@ func rdar79672230() {
258258 test ( & t) // expected-error {{no exact matches in call to local function 'test'}}
259259}
260260
261- // https://github.com/apple/swift/issues/60029
262- for (key, values) in oldName { // expected-error{{cannot find 'oldName' in scope}}
263- for (idx, value) in values. enumerated ( ) {
264- print ( key, idx, value)
265- }
266- }
267-
268261// rdar://97396399 - crash in swift::DiagnosticEngine::formatDiagnosticText
269262func rdar97396399( ) {
270263 // Has to be overloaded to make sure that contextual type is not recorded during constraint generation
Original file line number Diff line number Diff line change @@ -520,3 +520,16 @@ func rdar80797176 () {
520520 for x : Int in [ 1 , 2 ] where x. bitWidth == 32 { // Ok
521521 }
522522}
523+
524+ // https://github.com/apple/swift/issues/60029
525+ for (key, values) in oldName { // expected-error{{cannot find 'oldName' in scope}}
526+ for (idx, value) in values. enumerated ( ) {
527+ print ( key, idx, value)
528+ }
529+ }
530+
531+ // https://github.com/apple/swift/issues/60503
532+ func f60503( ) {
533+ let ( key, _) = settings. enumerate ( ) // expected-error{{cannot find 'settings' in scope}}
534+ let ( _, _) = settings. enumerate ( ) // expected-error{{cannot find 'settings' in scope}}
535+ }
You can’t perform that action at this time.
0 commit comments