Files
swift-mirror/test/NameLookup/Inputs/multi-file-3.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

28 lines
602 B
Swift

// Part of the multi-file.swift test.
func ~~~(x: Int, y: Int) -> Bool { // expected-error{{operator implementation without matching operator declaration}}
return x <= y
}
func test3() {
var a = funcOrVar // expected-error{{use of unresolved identifier 'funcOrVar'}}
var s = SomeStruct(value: 42) // use the SomeStruct from multi-file.swift
var tilde: Bool = 1 ~~~ 2 // expected-error{{operator is not a known binary operator}}
var di = DefaultInit()
}
protocol P3 {
func foo()
}
class Superclass {
func method() { }
}
class Subclass : Superclass {
override func method() { }
}