model: rename `as_notnullable` to `undecorate`
[nit.git] / src / highlight.nit
index ecc4c7d..e6ca8ea 100644 (file)
@@ -870,8 +870,8 @@ redef class AType
        do
                var mt = mtype
                if mt == null then return null
-               mt = mt.as_notnullable
-               if mt isa MVirtualType or mt isa MParameterType then
+               mt = mt.undecorate
+               if mt isa MFormalType then
                        res.add_class("nc_vt")
                end
                return mt.infobox(v)