public class A { public init() {} public var foo: String { return "" } public func bar() {} public subscript(_ x: Int) -> String { return "" } }