Files
swift-mirror/test/ImportResolution/Inputs/overload_vars.swift
Hamish Knight 5b99c2020f NFC: Re-organize NameBinding tests
The directory currently seems to have a mix of
tests for import resolution and name lookup.
Therefore split it into two directories;
ImportResolution and NameLookup.
2020-03-29 18:51:09 -07:00

33 lines
557 B
Swift

public var something : Int = 1
public var ambiguousWithVar : Int = 2
public var scopedVar : Int = 3
public var localVar : Int = 4
public var scopedFunction : Int = 5
public var typeNameWins : Int = 6
public protocol HasFoo {
var foo: Int { get }
}
public protocol HasBar {
var bar: Int { get }
}
public class HasFooGeneric<T> {
public var foo: Int = 0
}
extension HasFooGeneric {
public var bar: Int { return 0 }
}
public class HasFooNonGeneric {
public var foo: Int = 0
}
extension HasFooNonGeneric {
public var bar: Int { return 0 }
}