Files
swift-mirror/test/Index/Inputs/imported_swift_module.swift
Nathan Hawes 8ccccc6f74 [indexer] Fix crash in initVarRefIndexSymbols by handling func/var references in ImportDecls
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.
2017-01-26 09:15:42 -08:00

3 lines
65 B
Swift

public func importedFunc() {}
public var importedGlobal: Int = 0