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 @@ -521,3 +521,16 @@ func rdar80797176 () {
521521 for x : Int in [ 1 , 2 ] where x. bitWidth == 32 { // Ok
522522 }
523523}
524+
525+ // https://github.com/apple/swift/issues/60029
526+ for (key, values) in oldName { // expected-error{{cannot find 'oldName' in scope}}
527+ for (idx, value) in values. enumerated ( ) {
528+ print ( key, idx, value)
529+ }
530+ }
531+
532+ // https://github.com/apple/swift/issues/60503
533+ func f60503( ) {
534+ let ( key, _) = settings. enumerate ( ) // expected-error{{cannot find 'settings' in scope}}
535+ let ( _, _) = settings. enumerate ( ) // expected-error{{cannot find 'settings' in scope}}
536+ }
You can’t perform that action at this time.
0 commit comments