Last active
December 19, 2015 12:48
-
-
Save nadako/5957084 to your computer and use it in GitHub Desktop.
Type inference fail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -cp src | |
| -main Main | |
| -swf bin/Main.swf | |
| -cmd start bin/Main.swf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package; | |
| class Main | |
| { | |
| public function new(root) | |
| { | |
| root.addEventListener(flash.events.Event.ENTER_FRAME, onEnterFrame); | |
| } | |
| function onEnterFrame(_) | |
| { | |
| } | |
| static function main() | |
| { | |
| new Main(flash.Lib.current); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| src/Main.hx:16: characters 11-28 : flash.display.MovieClip should be { addEventListener : String -> (_ : Unknown<1> -> Void) -> Unknown<0> } | |
| src/Main.hx:16: characters 11-28 : Invalid type for field addEventListener : | |
| src/Main.hx:16: characters 11-28 : type : String -> listener : (Dynamic -> Void) -> ?useCapture : Bool -> ?priority : Int -> ?useWeakReference : Bool -> Void should be String -> (_ : Unknown<1> -> Void) -> Unknown<0> | |
| src/Main.hx:16: characters 11-28 : For function argument 'root' |
Author
nadako
commented
Jul 9, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment