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
/
model
/
model.nit
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
fe4eade
..
a0f8c43
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-217,8
+217,7
@@
redef class MModule
private var object_type_cache: nullable MClassType
# The type `Pointer`, super class to all extern classes
private var object_type_cache: nullable MClassType
# The type `Pointer`, super class to all extern classes
- fun pointer_type: MClassType
- is cached do return self.get_primitive_class("Pointer").mclass_type
+ var pointer_type: MClassType = self.get_primitive_class("Pointer").mclass_type is lazy
# The primitive type `Bool`
fun bool_type: MClassType
# The primitive type `Bool`
fun bool_type: MClassType