mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
7 lines
259 B
Swift
7 lines
259 B
Swift
// RUN: %swift -emit-ir %s -verify
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
|
|
func ^(a: BooleanType, Bool) -> Bool {
|
|
return !(a) // expected-error{{cannot invoke '!' with an argument of type 'BooleanType'}}
|
|
}
|