File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
validation-test/IDE/crashers_2_fixed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -4733,6 +4733,9 @@ bool constraints::isStandardComparisonOperator(ASTNode node) {
4733
4733
Optional<std::pair<Expr *, unsigned >>
4734
4734
ConstraintSystem::isArgumentExpr (Expr *expr) {
4735
4735
auto *argList = getParentExpr (expr);
4736
+ if (!argList) {
4737
+ return None;
4738
+ }
4736
4739
4737
4740
if (isa<ParenExpr>(argList)) {
4738
4741
for (;;) {
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
2
+
3
+ @resultBuilder
4
+ struct TupleBuilder < T> {
5
+ static func buildBlock( ) -> ( ) { }
6
+ }
7
+
8
+ func testPatternMatching( ) {
9
+ @TupleBuilder < String > var x3 {
10
+ let x : Int ? = nil
11
+ #^COMPLETE^#
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments