mirror of
https://github.com/apple/swift.git
synced 2026-10-08 12:50:50 +02:00
5 lines
509 B
Swift
5 lines
509 B
Swift
// {"kind":"typecheck","original":"754fcb14","signature":"(anonymous namespace)::ApplyClassifier::classifyFunctionBody((anonymous namespace)::AbstractFunction const&, (anonymous namespace)::PotentialEffectReason, swift::EffectKind)","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast","signatureNext":"ApplyClassifier::classifyApply"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
init<a>(b: a) where a == () throws -> String {
|
|
b(
|