Skip to content

Commit

Permalink
ft: Add regression test case for #462
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Jan 16, 2022
1 parent 39b94c5 commit 9a32556
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ft/regression/462.jk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
func id(x: int) -> int { x }

id[int](15); // error
5 changes: 5 additions & 0 deletions tests/ft/regression/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ tests:
- "tests/ft/regression/468.jk"
stdout: "in test!\n"
exit_code: 0
- name: "Forbid calling non-generic fn with generic arguments #462"
binary: "target/debug/jinko"
args:
- "tests/ft/regression/462.jk"
exit_code: 1

0 comments on commit 9a32556

Please sign in to comment.