Skip to content

Commit

Permalink
Add test for new fixme behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Oct 18, 2024
1 parent 072a7e5 commit 796956e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/inference/Arg/coverInvalidArg/input.hack
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function foo(int $a, int $b, int $c): void {}

function main(): void {
foo('a', /* HH_FIXME[4110] */ 'b', 'c');
}
2 changes: 2 additions & 0 deletions tests/inference/Arg/coverInvalidArg/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ERROR: InvalidArgument - input.hack:4:9 - Argument 1 of foo expects int, different type string(a) provided
ERROR: InvalidArgument - input.hack:4:40 - Argument 3 of foo expects int, different type string(c) provided

0 comments on commit 796956e

Please sign in to comment.