Files
swift-mirror/test/SourceKit/CursorInfo/rdar_41593893.swift
Rintaro Ishizaki baa690306d [IDE] Fix a crasher in SynthesizedExtensionAnalyzer
Count inheritance by 'getInheritedForPrinting()' (align with ASTPrinter).

rdar://problem/41593893
2018-08-16 20:09:44 +09:00

24 lines
606 B
Swift

// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %sourcekitd-test -req=cursor -pos=8:37 %t/first.swift -- %t/first.swift %t/second.swift | %FileCheck %s
// CHECK: source.lang.swift.ref.var.instance (6:9-6:12)
// BEGIN first.swift
protocol ChatDataSourceDelegateProtocol {
func chatDataSourceDidUpdate()
}
class BaseChatViewController {
var foo = 1
func bar() {
print(self . /*cursor-info->*/foo)
}
}
// BEGIN second.swift
extension BaseChatViewController: ChatDataSourceDelegateProtocol {
func chatDataSourceDidUpdate() { fatalError() }
}