📜  typedef haxe - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:34.881000             🧑  作者: Mango

代码示例1
// A typedef can give a name to any other type:
typedef IA = Array;

typedef User = {
  var age : Int;
  var name : String;
}

typedef Iterable = {
  function iterator() : Iterator;
}