Skip to content

Instantly share code, notes, and snippets.

@back2dos
Created July 20, 2012 09:59
Show Gist options
  • Save back2dos/3149957 to your computer and use it in GitHub Desktop.
Save back2dos/3149957 to your computer and use it in GitHub Desktop.
Multiple level forward
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