Files
swift-mirror/validation-test/compiler_crashers_2_fixed/859bb4ca7e7e2bd.swift
Hamish Knight 3244bffe71 [CS] Handle TVO_CanBindToPack in mergeEquivalenceClasses
Previously we could incorrectly propagate `TVO_CanBindToPack` to a
type variable that cannot bound to a pack type.
2025-07-14 12:44:23 +01:00

6 lines
623 B
Swift

// {"kind":"emit-silgen","original":"6943e75f","signature":"swift::SILFunctionType::SILFunctionType(swift::GenericSignature, swift::SILExtInfo, swift::SILCoroutineKind, swift::ParameterConvention, llvm::ArrayRef<swift::SILParameterInfo>, llvm::ArrayRef<swift::SILYieldInfo>, llvm::ArrayRef<swift::SILResultInfo>, std::__1::optional<swift::SILResultInfo>, swift::SubstitutionMap, swift::SubstitutionMap, swift::ASTContext const&, swift::RecursiveTypeProperties, swift::ProtocolConformanceRef)"}
// RUN: not %target-swift-frontend -emit-silgen %s
func a<each b : BinaryInteger>(c : repeat each b) {
UInt32(repeat each c)
}