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
haxe:
- stable
# - development
- development
env:
- KISS_TARGET=cpp
- KISS_TARGET=interp

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