Files
swift-mirror/validation-test/compiler_crashers/GenericArgumentsMismatchFailure-diagnoseAsError-e982ba.swift

9 lines
493 B
Swift

// {"kind":"typecheck","original":"c920d4b8","signature":"swift::constraints::GenericArgumentsMismatchFailure::diagnoseAsError()","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast","signatureNext":"GenericArgumentsMismatch::coalesceAndDiagnose"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a<each b {
c: (repeat [each b])
func d(e: repeat each b) {
func g<f>(_: [f] f )
repeat g(c.element
e