diff options
author | Simon Werbeck <simon.werbeck@gmail.com> | 2013-04-01 01:16:21 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-02-17 16:30:30 +0100 |
commit | 7cdcc81d646be5fdf995df5b24478a1c7d162de0 (patch) | |
tree | 910add3c44a369b173964688309e8cd12a1c4d55 /vala/valasymbolresolver.vala | |
parent | 6ebbc3f35e0cd267ffd1efddc5fa4cc5840682aa (diff) | |
download | vala-7cdcc81d646be5fdf995df5b24478a1c7d162de0.tar.gz |
Fix recursive declaration in generic base type
https://bugzilla.gnome.org/show_bug.cgi?id=688732
Diffstat (limited to 'vala/valasymbolresolver.vala')
-rw-r--r-- | vala/valasymbolresolver.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala index 53ad72821..8b7f75cd3 100644 --- a/vala/valasymbolresolver.vala +++ b/vala/valasymbolresolver.vala @@ -270,6 +270,11 @@ public class Vala.SymbolResolver : CodeVisitor { if (st.base_type != null) { // make sure that base type is resolved + if (current_scope == st.scope) { + // recursive declaration in generic base type + return new StructValueType (st); + } + var old_scope = current_scope; current_scope = st.scope; |