mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
264 B
Swift
10 lines
264 B
Swift
// RUN: %swift -parse %s -verify
|
|
|
|
class C {}
|
|
var c = C()
|
|
if c as C { // expected-error{{type 'C' does not conform to protocol 'LogicValue.metatype'}}
|
|
}
|
|
|
|
if {1} as ()->Int { // expected-error{{type '() -> Int' does not conform to protocol 'LogicValue.metatype'}}
|
|
}
|