diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-11-29 17:59:01 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-12-20 00:51:37 +0100 |
commit | 8bc6cc74406df77e134850c91f50a71ff037180a (patch) | |
tree | a229b201d97a6869521f061676e3899ac268665f /tests/objects/interface-generics.vala | |
parent | 3399a1c572121c87a518c010422a2fad9ce30589 (diff) | |
download | vala-8bc6cc74406df77e134850c91f50a71ff037180a.tar.gz |
vala: Don't just guess and check for a matching base_interface_method too
This fixes class with multiple interfaces which require implementations of
methods with conflicting naming while the explicit interface-type reference
is not present yet.
Extend the present test-case for runtime checking. This will still silently
connect matching base-class methods as before as introduced in
e1a3ff9470763e7c6ff5a887036390bd418f4e46
Fixes https://gitlab.gnome.org/GNOME/vala/issues/548
Diffstat (limited to 'tests/objects/interface-generics.vala')
-rw-r--r-- | tests/objects/interface-generics.vala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/objects/interface-generics.vala b/tests/objects/interface-generics.vala new file mode 100644 index 000000000..6fd9c29f8 --- /dev/null +++ b/tests/objects/interface-generics.vala @@ -0,0 +1,12 @@ +interface IFoo<G> : Object { + public abstract G get (); +} + +class Foo<G> : Object, IFoo<G> { + public new G get () { + return null; + } +} + +void main() { +} |