mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
28 lines
602 B
Swift
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() { }
|
|
}
|