[vala/wip/ricotz/lsp-rev: 8/9] WIP vala: Improve detection of recursive class declarations
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/ricotz/lsp-rev: 8/9] WIP vala: Improve detection of recursive class declarations
- Date: Wed, 19 Feb 2020 15:02:54 +0000 (UTC)
commit 4948643002e7d40c12cafa7100f39d64e16a7fd2
Author: Princeton Ferro <princetonferro gmail com>
Date: Tue Feb 18 10:39:54 2020 +0100
WIP vala: Improve detection of recursive class declarations
vala/valaclass.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index d5288a757..586fe287f 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -454,7 +454,8 @@ public class Vala.Class : ObjectTypeSymbol {
}
foreach (DataType base_type in base_types) {
- if (base_type.type_symbol != null && base_type.type_symbol.is_subtype_of (t)) {
+ if (base_type.type_symbol != null && base_type.type_symbol != this
+ && base_type.type_symbol.is_subtype_of (t)) {
return true;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]