From 983ffa16af953f70a5b676f82764ee13ce4752a8 Mon Sep 17 00:00:00 2001 From: Juraj Kirchheim Date: Fri, 10 Jun 2016 08:20:09 +0200 Subject: [PATCH] Avoid stringly approach. --- src/tink/macro/Types.hx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tink/macro/Types.hx b/src/tink/macro/Types.hx index f8230b5..5c68e56 100644 --- a/src/tink/macro/Types.hx +++ b/src/tink/macro/Types.hx @@ -168,12 +168,11 @@ class Types { sub : null, }); - static function resolveDirectType() return switch reduce(Context.getLocalType()) { case TInst(_, [TInst(_.get() => { kind: KExpr(e) }, _)]): - types.get(Std.parseInt(e.toString()))(); + types[e.getInt().sure()](); default: throw 'assert'; }