diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-03-21 11:14:49 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2023-03-21 11:14:49 +0100 |
commit | f8c0ce38c6954069a81561bff8207bf43a81c10f (patch) | |
tree | 3b433ecb7eaa3fb88981709d0c66834d7c65338f /tests | |
parent | c9c112d5ed9516405a1d87f390889a7003facdbc (diff) | |
download | vala-f8c0ce38c6954069a81561bff8207bf43a81c10f.tar.gz |
vala: Owned property accessors are not allowed for non-null simple types
Additionally drop invalid g_value_take_* references for enums
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/objects/property-owned-simple-type.test | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 9b005ce76..6f4c5a752 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -568,6 +568,7 @@ TESTS = \ objects/property-error.vala \ objects/property-notify.vala \ objects/property-notify-owned-getter.vala \ + objects/property-owned-simple-type.test \ objects/property-ownership.vala \ objects/property-read-only-auto.vala \ objects/property-read-only-member-write.test \ diff --git a/tests/objects/property-owned-simple-type.test b/tests/objects/property-owned-simple-type.test new file mode 100644 index 000000000..d75565bfa --- /dev/null +++ b/tests/objects/property-owned-simple-type.test @@ -0,0 +1,12 @@ +Invalid Code + +enum Bar { + FOO +} + +class Foo : Object { + public Bar bar { owned get; owned set; } +} + +void main () { +} |