haxe latest fixes (java, cs)

This commit is contained in:
Dima Granetchi
2015-01-02 22:29:46 +02:00
parent 85e02ec2a0
commit e86d2379e2
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -5,12 +5,15 @@ env:
global:
#- OS=mac # add this too to let the script know that the OS is a mac
# - ARCH=i686 # add this to run in 32-bit mode. See availability at README
- HAXE_VER: 3.1.3
# SAUCE_ACCESS_KEY
- secure: "YOUR_ENCRYPTED_SAUCE_ACCESS_KEY" # if you want to use SauceLabs
# SAUCE_USERNAME
- secure: "YOUR_ENCRYPTED_SAUCE_USERNAME" # if you want to use SauceLabs
matrix:
- HAXE_VER: 3.1.3
- HAXE_VER: latest
- TARGET=neko
# optional: FILENAME
- TARGET=interp
+3 -1
View File
@@ -308,7 +308,9 @@ class BindExt {
fieldListenerBody.push(callPrev);
if (field.params != null) {
fieldListenerBody.unshift(macro var n:Null < $type > = $i { oldValue } = try { $e; } catch (e:Dynamic) { null; } );
fieldListenerBody.unshift(macro $i { oldValue } = n);
fieldListenerBody.unshift(macro try { n = $e; } catch (e:Dynamic) { });
fieldListenerBody.unshift(macro var n:Null < $type > = null);
fieldListenerBody.unshift(macro var o:Null<$type> = $i{oldValue} );
res.init.push(macro var $oldValue:Null<$type> = null);