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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user