Fix haxe 4.2 type error

This commit is contained in:
2021-04-05 19:20:30 -06:00
parent ef0be7c93a
commit 4f5ce7b278
3 changed files with 3 additions and 4 deletions

View File

@@ -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

View File

@@ -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)):

View File

@@ -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)];
} }