mirror of
https://github.com/apple/swift.git
synced 2026-10-14 15:51:20 +02:00
9 lines
493 B
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
|