blob: 8f27d12c7e1b97984ac9e62f0b116b8f279941ee [file] [log] [blame]
// RUN: %target-swift-frontend %s -typecheck -verify
func badIs<T>(_ value: Any, anInstanceOf type: T.Type) -> Bool {
value is type // expected-error {{use of undeclared type 'type'}}
}
func foo() -> Int {
return // expected-error {{non-void function should return a value}}
}