diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-08-01 14:32:06 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-08-09 08:44:28 +0200 |
commit | 661f08ea4d92c37a566b388c543240ac71cef6dd (patch) | |
tree | 4528bc32d0f5a5588fae909131f66680cb78b037 /tests/generics/delegate-return-type-missing.test | |
parent | e74724d2646b0cda103984f1d6c4045db2262726 (diff) | |
download | vala-661f08ea4d92c37a566b388c543240ac71cef6dd.tar.gz |
vala: Enforce required type-arguments on parameter/return types of callables
This stricter check applies to delegate types in source files only.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1342
Diffstat (limited to 'tests/generics/delegate-return-type-missing.test')
-rw-r--r-- | tests/generics/delegate-return-type-missing.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/generics/delegate-return-type-missing.test b/tests/generics/delegate-return-type-missing.test new file mode 100644 index 000000000..b2ab8fb95 --- /dev/null +++ b/tests/generics/delegate-return-type-missing.test @@ -0,0 +1,8 @@ +Invalid Code + +delegate T FooFunc<T> (); + +delegate FooFunc BarFunc (); + +void main () { +} |