Files
swift-mirror/test/SourceKit/CursorInfo/rdar_41100570.swift
Rintaro Ishizaki 7ca7e4459d [IDE] Fix asstion failure when querying cursor info in defer statement body
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
2018-07-25 08:33:46 +09:00

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)