mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If walking into body of defer statement returns nullptr, it indicates *cutting-off* walking. Previously there was wrong assertion where it must be unmodified, non-nullptr return. rdar://problem/41100570
7 lines
190 B
Swift
7 lines
190 B
Swift
func foo(x: String) {
|
|
defer { _ = x.count }
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -cursor-action -pos=2:15 %s -- %s | %FileCheck %s
|
|
// CHECK: source.lang.swift.ref.var.local (1:10-1:11)
|