File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed
validation-test/IDE/crashers_2_fixed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1138,7 +1138,7 @@ ParserResult<Pattern> Parser::parsePattern() {
1138
1138
// code complete anything here -- we expect an identifier.
1139
1139
consumeToken (tok::code_complete);
1140
1140
}
1141
- return nullptr ;
1141
+ return makeParserCodeCompletionStatus () ;
1142
1142
1143
1143
case tok::kw_var:
1144
1144
case tok::kw_let: {
Original file line number Diff line number Diff line change @@ -757,3 +757,13 @@ class SynthesizedConformance5: SynthesizedConformance2 {
757
757
// OVERRIDE_SYNTHESIZED_5-DAG: Decl[Constructor]/Super: required init(from decoder: Decoder) throws {|};
758
758
// FIXME: 'required init(from decoder: Decoder)' is suggested twice
759
759
}
760
+
761
+ protocol ProtocolSr14687 {
762
+ var value : Int { get }
763
+ }
764
+ struct StructSr14687 : ProtocolSr14687 {
765
+ let foo = val, #^MULTI_VAR_DECL_OVERRIDE ^#
766
+ // MULTI_VAR_DECL_OVERRIDE: Begin completions, 1 items
767
+ // MULTI_VAR_DECL_OVERRIDE-DAG: Decl[InstanceVar]/Super: value: Int;
768
+ // MULTI_VAR_DECL_OVERRIDE: End completions
769
+ }
Original file line number Diff line number Diff line change
1
+ // RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE
2
+
3
+ class Foo {
4
+ let searchSubject = Bar< String , #^COMPLETE^#
5
+ }
You can’t perform that action at this time.
0 commit comments