You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This time, the issue is that TypeNullifier skips bodies of
multi-statement closures. However, ExprRewriter will type
happily pass them on to typeCheckClosureBody(). This could
trigger assertions. Fix this by skipping type checking of
multi-statement closures when diagnosing.
There seems to be a minor QoI regression in some test cases
that already looked pretty dodgy and/or had FIXMEs. However
I think its worth fixing a crash.
Copy file name to clipboardExpand all lines: test/Constraints/subscript.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ let _ = 1["1"] // expected-error {{ambiguous use of 'subscript'}}
74
74
// rdar://17687826 - QoI: error message when reducing to an untyped dictionary isn't helpful
75
75
letsquares=[1,2,3].reduce([:]){(dict, n)in // expected-error {{cannot invoke 'reduce' with an argument list of type '([_ : _], @noescape (_, Int) throws -> _)'}}
76
76
// expected-note @-1 {{expected an argument list of type '(T, combine: @noescape (T, Int) throws -> T)'}}
77
-
vardict= dict // expected-error {{type of expression is ambiguous without more context}}
Copy file name to clipboardExpand all lines: validation-test/compiler_crashers_fixed/27417-swift-constraints-constraintsystem-simplifyconformstoconstraint.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// RUN: not --crash %target-swift-frontend %s -parse
1
+
// RUN: not %target-swift-frontend %s -parse
2
2
3
3
// Distributed under the terms of the MIT license
4
4
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
Copy file name to clipboardExpand all lines: validation-test/compiler_crashers_fixed/27465-swift-constraints-constraintsystem-addtypevariableconstraintstoworklist.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// RUN: not --crash %target-swift-frontend %s -parse
1
+
// RUN: not %target-swift-frontend %s -parse
2
2
3
3
// Distributed under the terms of the MIT license
4
4
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
Copy file name to clipboardExpand all lines: validation-test/compiler_crashers_fixed/27870-swift-constraints-constraintsystem-optimizeconstraints.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// RUN: not --crash %target-swift-frontend %s -parse
1
+
// RUN: not %target-swift-frontend %s -parse
2
2
3
3
// Distributed under the terms of the MIT license
4
4
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
Copy file name to clipboardExpand all lines: validation-test/compiler_crashers_fixed/28024-swift-constraints-constraintlocatorbuilder-trysimplifytoexpr.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// RUN: not --crash %target-swift-frontend %s -parse
1
+
// RUN: not %target-swift-frontend %s -parse
2
2
3
3
// Distributed under the terms of the MIT license
4
4
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
0 commit comments