Files
swift-mirror/validation-test/compiler_crashers_2_fixed/b33dbab8ed3643.swift
Hamish Knight e912eeb2f4 [CS] Use the resolved type in NonOptionalUnwrapFailure::diagnoseAsError
Diagnostics can outlive the ConstraintSystem itself if we have a
diagnostic transaction for e.g `typeCheckParameterDefault`, make sure
we don't try to use a solver-allocated type as an argument.
2025-06-28 12:13:19 +01:00

5 lines
170 B
Swift

// {"signature":"swift::TypeBase::computeCanonicalType()"}
// RUN: not %target-swift-frontend -typecheck %s
func a (Int -> Int = { $0 func b( () = {}? ) func b {
/ 1