highlight: fix broken support for `MVirtualType`
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 6 May 2017 19:29:27 +0000 (15:29 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 7 May 2017 17:28:34 +0000 (13:28 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/highlight.nit

index cf7c598..5141fbe 100644 (file)
@@ -551,8 +551,8 @@ redef class MVirtualType
                var res = new HInfoBox(v, to_s)
                res.href = v.hrefto(mproperty)
                var p = mproperty
+               res.new_field("virtual type").add p.intro.linkto(v)
                add_doc_to_infobox(res)
-               if mdoc != null then mdoc.fill_infobox(res)
                return res
        end
        redef fun linkto(v)