From 7b60b7bc34f420c0ab18307599dd708698181b82 Mon Sep 17 00:00:00 2001 From: Dima Granetchi Date: Sun, 30 Nov 2014 21:36:52 +0200 Subject: [PATCH] generics in BindExt --- src/bindx/BindxExt.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bindx/BindxExt.hx b/src/bindx/BindxExt.hx index d8e5570..d5d1443 100644 --- a/src/bindx/BindxExt.hx +++ b/src/bindx/BindxExt.hx @@ -32,20 +32,20 @@ typedef Chain = { @:access(bindx.BindMacros) class BindExt { - @:noUsing macro static public function expr(expr:Expr, listener:Expr):Expr { + @:noUsing macro static public function expr(expr:ExprOf, listener:ExprOf->Null->Void>):ExprOfVoid> { return internalBindExpr(expr, listener); } - @:noUsing macro static public function exprTo(expr:Expr, target:Expr):Expr { + @:noUsing macro static public function exprTo(expr:ExprOf, target:ExprOf):ExprOfVoid> { var type = Context.typeof(expr).toComplexType(); return internalBindExpr(expr, macro function (_, to:Null<$type>) $target = to); } - @:noUsing macro static public function chain(expr:Expr, listener:Expr):Expr { + @:noUsing macro static public function chain(expr:ExprOf, listener:ExprOf->Null->Void>):ExprOfVoid> { return internalBindChain(expr, listener); } - @:noUsing macro static public function chainTo(expr:Expr, target:Expr):Expr { + @:noUsing macro static public function chainTo(expr:ExprOf, target:ExprOf):ExprOfVoid> { var type = Context.typeof(expr).toComplexType(); return internalBindChain(expr, macro function (_, to:Null<$type>) $target = to); }