|
@@ -23,15 +23,31 @@
|
|
|
package haxe;
|
|
|
|
|
|
/**
|
|
|
- This abstract is compatible to both its type parameters.
|
|
|
+ This type unifies with any function type.
|
|
|
|
|
|
- If used as a type parameter constraint, the accepted types are `L` and `R`.
|
|
|
+ It is intended to be used as a type parameter constraint. If used as a real
|
|
|
+ type, the underlying type will be `Dynamic`.
|
|
|
+**/
|
|
|
+abstract Function(Dynamic) { }
|
|
|
+
|
|
|
+/**
|
|
|
+ This type unifies with an enum instance if all constructors of the enum
|
|
|
+ require no arguments.
|
|
|
+
|
|
|
+ It is intended to be used as a type parameter constraint. If used as a real
|
|
|
+ type, the underlying type will be `Dynamic`.
|
|
|
+**/
|
|
|
+abstract FlatEnum(Dynamic) { }
|
|
|
+
|
|
|
+/**
|
|
|
+ This type is compatible with both its type parameters.
|
|
|
|
|
|
- If used as a real type, the underlying type will be `Dynamic`.
|
|
|
+ It is intended to be used as a type parameter constraint. If used as a real
|
|
|
+ type, the underlying type will be `Dynamic`.
|
|
|
**/
|
|
|
abstract Or<L,R>(Dynamic) from L to L from R to R { }
|
|
|
|
|
|
/**
|
|
|
The types allowed as key to `haxe.ds.ObjectMap`.
|
|
|
**/
|
|
|
-extern typedef ObjectMapKey = Or<Class<Dynamic>, {}>;
|
|
|
+extern typedef ObjectMapKey = Or<Class<Dynamic>, {}>;
|