[valadoc] Fix non-matching generic types of inferface implementations
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] Fix non-matching generic types of inferface implementations
- Date: Fri, 30 Sep 2016 13:42:34 +0000 (UTC)
commit 2d27185a90c2bafe3ebecf41d6f6d0d69dbcfcc3
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Sep 30 15:38:59 2016 +0200
Fix non-matching generic types of inferface implementations
src/libvaladoc/content/taglet.vala | 2 +-
src/libvaladoc/taglets/tagletinheritdoc.vala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libvaladoc/content/taglet.vala b/src/libvaladoc/content/taglet.vala
index a8fc4f1..c492621 100644
--- a/src/libvaladoc/content/taglet.vala
+++ b/src/libvaladoc/content/taglet.vala
@@ -27,7 +27,7 @@ public interface Valadoc.Content.Taglet : ContentElement {
public abstract Rule? get_parser_rule (Rule run_rule);
- public virtual Gee.List<Inline>? get_inheritable_documentation () {
+ public virtual Gee.List<ContentElement>? get_inheritable_documentation () {
return null;
}
diff --git a/src/libvaladoc/taglets/tagletinheritdoc.vala b/src/libvaladoc/taglets/tagletinheritdoc.vala
index 6e9aa43..d8b2885 100644
--- a/src/libvaladoc/taglets/tagletinheritdoc.vala
+++ b/src/libvaladoc/taglets/tagletinheritdoc.vala
@@ -188,13 +188,13 @@ public class Valadoc.Taglets.InheritDoc : InlineTaglet {
comment.content.remove ((Paragraph) separator);
}
- private Run content_copy (Gee.List<Inline>? content) {
+ private Run content_copy (Gee.List<ContentElement>? content) {
Run run = new Run (Run.Style.NONE);
run.parent = this;
if (content != null) {
- foreach (Inline item in content) {
- run.content.add ((Inline) item.copy (this));
+ foreach (ContentElement item in content) {
+ run.content.add (item.copy (this) as Inline);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]