File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 233947124ebf764c11588b7aef9be337888b2ae3
2
+ refs/heads/master: a686fca618fb78ab1001d4bb8d862679813876ac
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -3086,6 +3086,11 @@ namespace {
3086
3086
}
3087
3087
3088
3088
Type visitTapExpr (TapExpr *expr) {
3089
+ DeclContext *varDC = expr->getVar ()->getDeclContext ();
3090
+ assert (varDC == CS.DC || (varDC && isa<AbstractClosureExpr>(varDC) &&
3091
+ cast<AbstractClosureExpr>(varDC)->hasSingleExpressionBody ()) &&
3092
+ " TapExpr var should be in the same DeclContext we're checking it in!" );
3093
+
3089
3094
auto locator = CS.getConstraintLocator (expr);
3090
3095
auto tv = CS.createTypeVariable (locator);
3091
3096
You can’t perform that action at this time.
0 commit comments