Skip to content

Commit 6cdb6c9

Browse files
Michael Thomasfacebook-github-bot
authored andcommitted
Adds test to exercise bug when rendering supertypes with Flows
Summary: Extended reasons accumulate provenance on the subtype during subtyping but we do accumulate provenance on the supertype during typing, resulting in a Flow. At the moment we aren't handling this meaning that we end up pointing at the outermost rather than innermost reason, which is what legacy reasons will do. This case wasn't exercised by existing tests so we add one here Reviewed By: madgen Differential Revision: D63900544 fbshipit-source-id: eca81a69bffbc522c6ecbb7e81c5ede2cd760d5c
1 parent 69f9a1a commit 6cdb6c9

File tree

6 files changed

+1303
-0
lines changed

6 files changed

+1303
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?hh
2+
3+
function f(inout varray<int> $a): void {}
4+
5+
function test(int $x, int $y): void {
6+
f(inout tuple($x, $y));
7+
}

0 commit comments

Comments
 (0)