Fix haxe 4.2 type error

This commit is contained in:
2021-04-05 19:20:30 -06:00
parent 653b44f2cf
commit cdd33d717c
2 changed files with 2 additions and 3 deletions

View File

@@ -176,7 +176,6 @@ class Kiss {
}
fields;
case CallExp({pos: _, def: Symbol(mac)}, args) if (macros.exists(mac)):
trace(mac);
var expandedExp = macros[mac](exp, args, k);
if (expandedExp != null) readerExpToFields(expandedExp, k, errorIfNot) else [];
case CallExp({pos: _, def: Symbol(alias)}, args) if (callAliases.exists(alias)):

View File

@@ -20,7 +20,7 @@ abstract List<T>(Array<T>) from Array<T> to Array<T> {
}
@:to
public function toArray<T>() {
public function toArray() {
return this;
}
@@ -29,7 +29,7 @@ abstract List<T>(Array<T>) from Array<T> to Array<T> {
}
@:arrayAccess
public inline function get<T>(idx:Int):Null<T> {
public inline function get(idx:Int):Null<T> {
return this[realIndex(idx)];
}