Fix haxe 4.2 type error
This commit is contained in:
@@ -6,7 +6,7 @@ os:
|
|||||||
- windows
|
- windows
|
||||||
haxe:
|
haxe:
|
||||||
- stable
|
- stable
|
||||||
# - development
|
- development
|
||||||
env:
|
env:
|
||||||
- KISS_TARGET=cpp
|
- KISS_TARGET=cpp
|
||||||
- KISS_TARGET=interp
|
- KISS_TARGET=interp
|
||||||
|
|||||||
@@ -176,7 +176,6 @@ class Kiss {
|
|||||||
}
|
}
|
||||||
fields;
|
fields;
|
||||||
case CallExp({pos: _, def: Symbol(mac)}, args) if (macros.exists(mac)):
|
case CallExp({pos: _, def: Symbol(mac)}, args) if (macros.exists(mac)):
|
||||||
trace(mac);
|
|
||||||
var expandedExp = macros[mac](exp, args, k);
|
var expandedExp = macros[mac](exp, args, k);
|
||||||
if (expandedExp != null) readerExpToFields(expandedExp, k, errorIfNot) else [];
|
if (expandedExp != null) readerExpToFields(expandedExp, k, errorIfNot) else [];
|
||||||
case CallExp({pos: _, def: Symbol(alias)}, args) if (callAliases.exists(alias)):
|
case CallExp({pos: _, def: Symbol(alias)}, args) if (callAliases.exists(alias)):
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ abstract List<T>(Array<T>) from Array<T> to Array<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@:to
|
@:to
|
||||||
public function toArray<T>() {
|
public function toArray() {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ abstract List<T>(Array<T>) from Array<T> to Array<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@:arrayAccess
|
@:arrayAccess
|
||||||
public inline function get<T>(idx:Int):Null<T> {
|
public inline function get(idx:Int):Null<T> {
|
||||||
return this[realIndex(idx)];
|
return this[realIndex(idx)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user