mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
6 lines
391 B
Swift
6 lines
391 B
Swift
// {"kind":"typecheck","signature":"swift::TypeChecker::typeCheckCheckedCast(swift::Type, swift::Type, swift::CheckedCastContextKind, swift::DeclContext*)","signatureAssert":"Assertion failed: (!toType->isAny() && \"casts to 'Any' should've been handled above\"), function typeCheckCheckedCast"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
init(a : () -> ()) {
|
|
[.init ?? a]
|
|
}
|