nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitg*: extern classes a polymorph in Nit, and unboxed only for extern methods
[nit.git]
/
src
/
highlight.nit
diff --git
a/src/highlight.nit
b/src/highlight.nit
index
cd400bd
..
bfa0d0f
100644
(file)
--- a/
src/highlight.nit
+++ b/
src/highlight.nit
@@
-553,6
+553,7
@@
redef class Variable
super HInfoBoxable
redef fun infobox(v)
do
super HInfoBoxable
redef fun infobox(v)
do
+ var declared_type = self.declared_type
if declared_type == null then
var res = new HInfoBox(v, "{name}")
res.new_field("local var").append("{name}")
if declared_type == null then
var res = new HInfoBox(v, "{name}")
res.new_field("local var").append("{name}")
@@
-857,7
+858,7
@@
redef class AType
do
var mt = mtype
if mt == null then return null
do
var mt = mtype
if mt == null then return null
- if mt isa MNullableType then mt = mt.mtype
+ mt = mt.as_notnullable
if mt isa MVirtualType or mt isa MParameterType then
res.add_class("nc_vt")
end
if mt isa MVirtualType or mt isa MParameterType then
res.add_class("nc_vt")
end