mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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
9 lines
409 B
Swift
9 lines
409 B
Swift
// {"signature":"swift::constraints::ConstraintSystem::getTypeOfMemberReference(swift::Type, swift::ValueDecl*, swift::DeclContext*, bool, swift::FunctionRefInfo, swift::constraints::ConstraintLocator*, llvm::SmallVectorImpl<std::__1::pair<swift::GenericTypeParamType*, swift::TypeVariableType*>>*)"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
struct a < let b > {
|
|
func
|
|
< (c : Self) {
|
|
c.b
|
|
}
|
|
}
|