mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Properly recurse when removing "unsafe" from inlinable code
I forgot that I have to manually recurse in the syntactic rewriter. Do so. Fixes rdar://147877042
This commit is contained in:
@@ -23,7 +23,9 @@ public struct SequenceWithUnsafeIterator: Sequence {
|
||||
// CHECK-NOT: unsafe
|
||||
print( unsafe getIntUnsafely())
|
||||
|
||||
for unsafe _ in SequenceWithUnsafeIterator() { }
|
||||
for unsafe _ in SequenceWithUnsafeIterator() {
|
||||
_ = unsafe getIntUnsafely()
|
||||
}
|
||||
}
|
||||
|
||||
// CHECK: public protocol P
|
||||
|
||||
Reference in New Issue
Block a user