Created
July 20, 2012 09:59
-
-
Save back2dos/3149957 to your computer and use it in GitHub Desktop.
Multiple level forward
This file contains 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 ; | |
import tink.lang.Cls; | |
class LevelSpec implements Cls { | |
@:read var x:Float = _; | |
} | |
class RunningLevel implements Cls { | |
@:forward var spec:LevelSpec = _; | |
} | |
class Drawer { | |
function foo(r:RunningLevel) { trace( r.x ); } | |
} | |
class Main { | |
static function main() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment