From e470e0c2126ca9ff2efbd6ad819130ff68c30976 Mon Sep 17 00:00:00 2001 From: back2dos Date: Wed, 13 Nov 2013 20:20:16 +0100 Subject: [PATCH] First arg always typed explicitly to avoid using oddities. --- src/tink/macro/Exprs.hx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tink/macro/Exprs.hx b/src/tink/macro/Exprs.hx index b50fbab..8947cc7 100644 --- a/src/tink/macro/Exprs.hx +++ b/src/tink/macro/Exprs.hx @@ -395,19 +395,19 @@ class Exprs { static public inline function define(name:String, ?init:Expr, ?typ:ComplexType, ?pos:Position) return at(EVars([ { name:name, type: typ, expr: init } ]), pos); - static public inline function add(e1, e2, ?pos) + static public inline function add(e1:Expr, e2, ?pos) return binOp(e1, e2, OpAdd, pos); - static public inline function unOp(e, op, ?postFix = false, ?pos) + static public inline function unOp(e:Expr, op, ?postFix = false, ?pos) return EUnop(op, postFix, e).at(pos); - static public inline function binOp(e1, e2, op, ?pos) + static public inline function binOp(e1:Expr, e2, op, ?pos) return EBinop(op, e1, e2).at(pos); - static public inline function field(e, field, ?pos) + static public inline function field(e:Expr, field, ?pos) return EField(e, field).at(pos); - static public inline function call(e, ?params, ?pos) + static public inline function call(e:Expr, ?params, ?pos) return ECall(e, params == null ? [] : params).at(pos); static public inline function toExpr(v:Dynamic, ?pos:Position)