Avoid conflicting tink.Outcome and tink.OutcomeTools typedefs

Aliases for `tink.core.Outcome` were defined in both `tink.CoreApi` and `tink.MacroApi`.

This resulted in the error message:

> Type name tink.Outcome is redefined from module tink.MacroApi
This commit is contained in:
Jason O'Neil
2013-10-17 08:30:53 +08:00
parent 8fb477e8e9
commit c7bb41fad4

View File

@@ -10,8 +10,8 @@ typedef Types = tink.macro.Types;
typedef Binops = tink.macro.Ops.Binary;
typedef Unops = tink.macro.Ops.Unary;
typedef Outcome<D, F> = tink.core.Outcome<D, F>;
typedef OutcomeTools = tink.core.Outcome.OutcomeTools;
typedef MacroOutcome<D, F> = tink.core.Outcome<D, F>;
typedef MacroOutcomeTools = tink.core.Outcome.OutcomeTools;
//TODO: consider adding stuff from haxe.macro.Expr here
class MacroApi {
@@ -20,4 +20,4 @@ class MacroApi {
return prefix + Std.string(idCounter++);
static public function pos()
return haxe.macro.Context.currentPos();
}
}