Main.hx 184 B

12345678910111213
  1. @:generic
  2. class Foo<@:const T:Int> {
  3. public function new() {
  4. trace(T);
  5. }
  6. }
  7. class Main {
  8. public static function main() {
  9. new Foo<10>();
  10. new Foo<"10">();
  11. }
  12. }