diff --git a/tests/ft/regression/462.jk b/tests/ft/regression/462.jk new file mode 100644 index 00000000..4e959446 --- /dev/null +++ b/tests/ft/regression/462.jk @@ -0,0 +1,3 @@ +func id(x: int) -> int { x } + +id[int](15); // error diff --git a/tests/ft/regression/regression.yml b/tests/ft/regression/regression.yml index 3119494c..1277ee6a 100644 --- a/tests/ft/regression/regression.yml +++ b/tests/ft/regression/regression.yml @@ -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