Compare commits

..

2 Commits

Author SHA1 Message Date
Juraj Kirchheim
4c523e02a5 Release 0.12.3 2017-03-06 14:31:20 +01:00
Juraj Kirchheim
f39fc3b296 Try to save TMono. 2017-03-06 09:16:31 +01:00
3 changed files with 4 additions and 5 deletions

View File

@@ -11,8 +11,8 @@
"contributors": [
"back2dos"
],
"releasenote": "Fix issue with .toComplex()",
"version": "0.12.2",
"releasenote": "Better converion for TMono",
"version": "0.12.3",
"url": "http://haxetink.org/tink_macro",
"dependencies": {
"tink_core": ""

View File

@@ -14,7 +14,6 @@ typedef Bouncer = tink.macro.Bouncer;
typedef Types = tink.macro.Types;
typedef Binops = tink.macro.Ops.Binary;
typedef Unops = tink.macro.Ops.Unary;
typedef TypeMap<T> = tink.macro.TypeMap<T>;
//TODO: consider adding stuff from haxe.macro.Expr here
typedef MacroOutcome<D, F> = tink.core.Outcome<D, F>;
@@ -36,4 +35,4 @@ class MacroApi {
static public function pos()
return haxe.macro.Context.currentPos();
}
}

View File

@@ -57,7 +57,7 @@ class Sisyphus {
case null:
null;
case TMono(_.get() => t):
t == null ? null : toComplexType(t);
t == null ? Types.toComplex(type, { direct: true }) : toComplexType(t);
case TEnum(_.get() => baseType, params):
TPath(toTypePath(baseType, params));
case TInst(_.get() => classType, params):