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) {
4718
4718
Optional<std::pair<Expr *, unsigned >>
4719
4719
ConstraintSystem::isArgumentExpr (Expr *expr) {
4720
4720
auto *argList = getParentExpr (expr);
4721
+ if (!argList) {
4722
+ return None;
4723
+ }
4721
4724
4722
4725
if (isa<ParenExpr>(argList)) {
4723
4726
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