mirror of
https://github.com/apple/swift.git
synced 2026-10-26 20:15:53 +01:00
7 lines
656 B
Swift
7 lines
656 B
Swift
// {"kind":"typecheck","original":"5df04952","signature":"swift::constraints::ConstraintSystem::simplifySameShapeConstraint(swift::Type, swift::Type, swift::optionset::OptionSet<swift::constraints::ConstraintSystem::TypeMatchFlags, unsigned int>, swift::constraints::ConstraintLocatorBuilder)","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast","signatureNext":"ConstraintSystem::simplifyConstraint"}
|
|
// RUN: not --crash %target-swift-frontend -typecheck %s
|
|
func a<each b, each d>(
|
|
repeat each b, c: repeat each d -> (repeat (each b each d
|
|
func e<each g>(f: repeat each g) {
|
|
a(repeat f
|