model: fix mdoc_or_fallback for nullables types
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 25 Oct 2017 19:00:28 +0000 (15:00 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 8 Dec 2017 19:58:29 +0000 (14:58 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/model/model.nit

index 3ceb9f3..c86bf96 100644 (file)
@@ -1803,6 +1803,8 @@ class MNullableType
                if t == mtype then return self
                return t.as_nullable
        end
+
+       redef fun mdoc_or_fallback do return mtype.mdoc_or_fallback
 end
 
 # A non-null version of a formal type.