Permalink
Browse files

update to haxe 2.10

  • Loading branch information...
1 parent a7cc5f0 commit 41be91c195567d54db708c32fff9790207d2e408 @Simn-haxe2 committed Aug 16, 2012
Showing with 9 additions and 9 deletions.
  1. +8 −8 src/hxop/engine/OverloadTransformer.hx
  2. +1 −1 src/hxop/ops/ReflectionOps.hx
View
16 src/hxop/engine/OverloadTransformer.hx
@@ -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 = [];
View
2 src/hxop/ops/ReflectionOps.hx
@@ -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

0 comments on commit 41be91c

Please sign in to comment.