Files
swift-mirror/test/NameBinding/Inputs/multi-file-3.swift
Doug Gregor d0b4d120b7 Implicit unwrapped optionals get defaulted to nil, too <rdar://problem/17726756>.
It was type-checking-order-sensitive whether we noticed that IUO's
defaulted to nil. Make that no longer the case.

Swift SVN r20558
2014-07-25 20:19:32 +00: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() { }
}