File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -897,7 +897,8 @@ class PrintAST : public ASTVisitor<PrintAST> {
897
897
M, cast<ValueDecl>(Current));
898
898
}
899
899
900
- T = T.subst (subMap, SubstFlags::DesugarMemberTypes);
900
+ T = T.subst (subMap,
901
+ SubstFlags::DesugarMemberTypes | SubstFlags::UseErrorType);
901
902
}
902
903
903
904
printType (T);
Original file line number Diff line number Diff line change 135
135
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=PROTOINIT_FINAL -code-completion-keywords=false | %FileCheck %s -check-prefix=PROTOINIT_FINAL
136
136
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=PROTOINIT_STRUCT -code-completion-keywords=false | %FileCheck %s -check-prefix=PROTOINIT_STRUCT
137
137
138
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=MISSING_ASSOC_1 -code-completion-keywords=false | %FileCheck %s -check-prefix=MISSING_ASSOC_1
139
+
140
+
138
141
@objc
139
142
class TagPA { }
140
143
@objc
@@ -704,3 +707,22 @@ struct RequiredS : RequiredP {
704
707
// PROTOINIT_STRUCT: Begin completions, 1 items
705
708
// PROTOINIT_STRUCT-DAG: init(p: Int) {|}; name=init(p: Int)
706
709
// PROTOINIT_STRUCT: End completions
710
+
711
+ protocol AssocAndMethod {
712
+ associatedtype T = Int
713
+ associatedtype U : P0
714
+ associatedtype V
715
+
716
+ func f1( _: T )
717
+ func f2( _: U )
718
+ func f3( _: V )
719
+ }
720
+
721
+ struct MissingAssoc : AssocAndMethod {
722
+ func #^MISSING_ASSOC_1^#
723
+ }
724
+ // MISSING_ASSOC_1: Begin completions
725
+ // MISSING_ASSOC_1-DAG: Decl[InstanceMethod]/Super: f1(_: MissingAssoc.T) {|};
726
+ // MISSING_ASSOC_1-DAG: Decl[InstanceMethod]/Super: f2(_: MissingAssoc.U) {|};
727
+ // MISSING_ASSOC_1-DAG: Decl[InstanceMethod]/Super: f3(_: MissingAssoc.V) {|};
728
+ // MISSING_ASSOC_1: End completions
You can’t perform that action at this time.
0 commit comments