Remove @:to metadata from conversion functions to allow compilation with Haxe4

Implicit conversion between both abstracts is still possible because both have a @:from function
https://github.com/HaxeFoundation/haxe/issues/6441
This commit is contained in:
Hendrik Klindworth
2017-08-27 02:17:12 +02:00
committed by Joshua Granick
parent 146ba1d231
commit 93a0c37649
2 changed files with 2 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ import lime._backend.native.NativeCFFI;
}
@:to private static function toScanCode (keyCode:KeyCode):ScanCode {
private static function toScanCode (keyCode:KeyCode):ScanCode {
#if (lime_cffi && !macro)
var code:Int = keyCode;

View File

@@ -253,7 +253,7 @@ import lime._backend.native.NativeCFFI;
}
@:to private static function toKeyCode (scanCode:ScanCode):KeyCode {
private static function toKeyCode (scanCode:ScanCode):KeyCode {
return KeyCode.fromScanCode (scanCode);