]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Detect usage of static type-parameter in runtime context
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 31 May 2022 08:19:46 +0000 (10:19 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Aug 2022 17:10:59 +0000 (19:10 +0200)
commit903b29c6819a817f6135e039f7a3c675e7dc8408
tree44f4190b7c69dad570b0822d69ff2b17e1ff97e5
parent675e3017f05b0e9bf7e253360d481940526e7234
codegen: Detect usage of static type-parameter in runtime context

Compact classes doesn't carry runtime information of its type-parameters.
In case this information is required we need report an error.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1326
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/generics/type-parameter-static-in-runtime.test [new file with mode: 0644]