mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
5 lines
265 B
Swift
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^#
|