nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler: introduce and use char_instance, float_instance and null_instance
[nit.git]
/
src
/
compiler
/
separate_erasure_compiler.nit
diff --git
a/src/compiler/separate_erasure_compiler.nit
b/src/compiler/separate_erasure_compiler.nit
index
6e0d2b6
..
ada0bbf
100644
(file)
--- a/
src/compiler/separate_erasure_compiler.nit
+++ b/
src/compiler/separate_erasure_compiler.nit
@@
-643,7
+643,7
@@
class SeparateErasureCompilerVisitor
redef fun native_array_instance(elttype, length)
do
redef fun native_array_instance(elttype, length)
do
- var nclass = self.get_class("NativeArray")
+ var nclass = mmodule.native_array_class
var mtype = nclass.get_mtype([elttype])
var res = self.new_var(mtype)
res.is_exact = true
var mtype = nclass.get_mtype([elttype])
var res = self.new_var(mtype)
res.is_exact = true