diff options
Diffstat (limited to 'v_windows/v/old/vlib/v/checker/tests/method_generic_infer_err.vv')
-rw-r--r-- | v_windows/v/old/vlib/v/checker/tests/method_generic_infer_err.vv | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/checker/tests/method_generic_infer_err.vv b/v_windows/v/old/vlib/v/checker/tests/method_generic_infer_err.vv new file mode 100644 index 0000000..226c4c2 --- /dev/null +++ b/v_windows/v/old/vlib/v/checker/tests/method_generic_infer_err.vv @@ -0,0 +1,10 @@ +struct Data {} + +fn (_ Data) func<T>() T { + return T{} +} + +fn main() { + data := Data{} + data.func() +} |