Avoid stringly approach.
This commit is contained in:
@@ -168,12 +168,11 @@ class Types {
|
|||||||
sub : null,
|
sub : null,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
static function resolveDirectType()
|
static function resolveDirectType()
|
||||||
return
|
return
|
||||||
switch reduce(Context.getLocalType()) {
|
switch reduce(Context.getLocalType()) {
|
||||||
case TInst(_, [TInst(_.get() => { kind: KExpr(e) }, _)]):
|
case TInst(_, [TInst(_.get() => { kind: KExpr(e) }, _)]):
|
||||||
types.get(Std.parseInt(e.toString()))();
|
types[e.getInt().sure()]();
|
||||||
default:
|
default:
|
||||||
throw 'assert';
|
throw 'assert';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user