mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IndexSwiftASTWalker::initVarRefIndexSymbols wasn't handling getCurrentExpr() returning a nullptr as it does when processing a reference to someVar in the below import: import var SomeModule.someVar This patch fixes rdar://problem/30118572 and adds tests for import var/func references.
3 lines
65 B
Swift
3 lines
65 B
Swift
public func importedFunc() {}
|
|
public var importedGlobal: Int = 0
|