Files
swift-mirror/test/SourceKit/Indexing/Inputs/test_module.swift
Ben Langmuir 780b857a7f [index] Fix assertion failure when indexing func import
We were implicitly assuming that a function reference could only happen
in an expression, ignoring the case of
        import func Module.fooFunc

For now, this doesn't actually add the reference to the index because
initCallRefIndexSymbol doesn't allow references without a parent
expression.  We can look at adding the reference, or maybe doing
something special to the import itself separately.

rdar://problem/26496135
2016-11-15 10:56:22 -08:00

33 lines
481 B
Swift

public class Empty {}
public class TwoInts {
var x, y : Int
public init(a : Int, b : Int) {
x = a
y = b
}
}
public class ComputedProperty {
public var value : Int {
get {
var result = 0
return result
}
set(newVal) {
// completely ignore it!
}
}
}
public protocol Prot1 { }
public protocol Prot2 : Prot1 { }
public protocol Prot3 { }
public class C2 { }
extension C2 : Prot3, Prot1, Prot2 { }
public func globalFunc() {}