Files
swift-mirror/validation-test/compiler_crashers_2_fixed/28db756e678d736.swift
Hamish Knight 0c16c00bb4 [Sema] Resolve interface type in ExtendedTypeRequest
Resolving only a structural type meant we weren't checking generic
constraints, allowing invalid extensions to get past the type-checker.
Change to resolve an interface type.
2025-08-24 11:49:14 +01:00

12 lines
252 B
Swift

// {"kind":"emit-silgen","signature":"swift::Lowering::SILGenModule::useConformance(swift::ProtocolConformanceRef)"}
// RUN: not %target-swift-frontend -emit-silgen %s
protocol a {
}
struct b<c: a> {
}
extension [b<Int>] {
func d() {
first
}
}