Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update to haxe 2.10

  • Loading branch information...
commit 41be91c195567d54db708c32fff9790207d2e408 1 parent a7cc5f0
Simn-haxe2 authored
16 src/hxop/engine/OverloadTransformer.hx
View
@@ -316,14 +316,14 @@ class OverloadTransformer
return switch(t)
{
case TInst(cl, params):
- if (cl.get().kind == KTypeParameter)
- TPath({ name: "Dynamic", pack: [], params: [], sub: null }).toType().sure();
- else
- {
- var newParams = [];
- for (param in params)
- newParams.push(monofy(param));
- TInst(cl, newParams);
+ switch(cl.get().kind) {
+ case KTypeParameter(_):
+ TPath({ name: "Dynamic", pack: [], params: [], sub: null }).toType().sure();
+ default:
+ var newParams = [];
+ for (param in params)
+ newParams.push(monofy(param));
+ TInst(cl, newParams);
}
case TFun(args, ret):
var newArgs = [];
2  src/hxop/ops/ReflectionOps.hx
View
@@ -22,7 +22,7 @@ class ReflectionOps
@op("[]=") @noAssign static public function write(base:Dynamic, access:String):ReflectionFunc
{
- return callback(ReflectionOps.access, base, access);
+ return callback(ReflectionOps.access, base, access, _);
}
@op("=") static public inline function assign(lhs:ReflectionFunc, rhs:Dynamic):Dynamic
Please sign in to comment.
Something went wrong with that request. Please try again.