SHARE
TWEET
Untitled
a guest
Feb 20th, 2017
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- package;
- import haxe.ds.Vector;
- //
- class Main
- {
- /**
- *
- */
- static function main()
- {
- var argh:Horror<MyEnum> = new Horror<MyEnum>();
- argh.list[0] = MyEnum.A;
- var type:MyEnum = argh.list[0];
- }
- }
- //
- class Horror<T:EnumValue>
- {
- public var list:Vector<T>;
- public function new()
- {
- this.list = new Vector<T>(3);
- }
- }
- //
- enum MyEnum
- {
- A;
- B;
- C;
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

