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 @@ -4718,6 +4718,9 @@ bool constraints::isStandardComparisonOperator(ASTNode node) {
47184718Optional<std::pair<Expr *, unsigned >>
47194719ConstraintSystem::isArgumentExpr (Expr *expr) {
47204720 auto *argList = getParentExpr (expr);
4721+ if (!argList) {
4722+ return None;
4723+ }
47214724
47224725 if (isa<ParenExpr>(argList)) {
47234726 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