]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix non-matching generic types of inferface implementations
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 30 Sep 2016 13:38:59 +0000 (15:38 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 30 Sep 2016 13:38:59 +0000 (15:38 +0200)
src/libvaladoc/content/taglet.vala
src/libvaladoc/taglets/tagletinheritdoc.vala

index a8fc4f144af91f56675bf08378051f0a8ec0126e..c492621a192cb65a48f18c0016d454a2696e7cda 100644 (file)
@@ -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;
        }
 
index 6e9aa43d4d7660e25e9236f56be9fc1764993e19..d8b2885454765e786df462658cd2886f7670a10b 100644 (file)
@@ -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);
                        }
                }