Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/Sema/CSSyntacticElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,7 @@ class SyntacticElementConstraintGenerator
auto projectedTy = computeProjectedValueType(wrappedVar, wrapperTy);
// The projected type may have an error, make sure we turn it into a hole
// if necessary.
ASSERT(!projectedTy->hasUnboundGenericType() &&
!projectedTy->hasPlaceholder());
ASSERT(!projectedTy->hasUnboundGenericType());
projectedTy = cs.replaceInferableTypesWithTypeVars(projectedTy, locator);
cs.setType(projectedVal, projectedTy);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// {"kind":"typecheck","original":"25782df5","signature":"(anonymous namespace)::SyntacticElementConstraintGenerator::visitDecl(swift::Decl*)","signatureAssert":"Assertion failed: (!projectedTy->hasUnboundGenericType() && !projectedTy->hasPlaceholder()), function setPropertyWrapperAuxiliaryTypes"}
// RUN: not %target-swift-frontend -typecheck %s
@propertyWrapper
struct a<
b
> {
projectedValue : Self var wrappedValue: b
}
{
@a var c: <#type#>
}