Files
swift-mirror/validation-test/IDE/crashers_fixed/ab16c0e38dae31b3.swift
Hamish Knight 4c6e06fed3 [AST] Use ErrorType for invalid value generic parameter
If we fail to resolve the value type for a value generic parameter,
previously we would have returned a null Type, causing crashes
downstream. Instead, return an ErrorType, leaving a null Type for
cases where the generic parameter isn't a value generic at all.

rdar://154856417
2025-07-02 21:19:45 +01:00

5 lines
265 B
Swift

// {"kind":"complete","signature":"swift::Mangle::ASTMangler::appendType(swift::Type, swift::GenericSignature, swift::ValueDecl const*)"}
// RUN: %target-swift-ide-test -code-completion --code-completion-token=COMPLETE -source-filename %s
func a<let b
#^COMPLETE^#