Fix haxe 4.2 type error
This commit is contained in:
@@ -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)):
|
||||
|
@@ -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)];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user