@@ -37,7 +37,7 @@ extern class Type {
In general, type parameter information cannot be obtained at runtime.
**/
- static function getClass<T>(o:T):Class<T>;
+ static function getClass<T>(o:T):Null<Class<T>>;
/**
Returns the enum of enum instance `o`.
@@ -32,7 +32,7 @@ enum ValueType {
}
@:coreApi class Type {
- public static function getClass<T>(o:T):Class<T>
+ public static function getClass<T>(o:T):Null<Class<T>>
untyped {
if (o == null || !Reflect.isObject(o))
return null;
@@ -43,7 +43,7 @@ enum ValueType {
- public static function getClass<T>(o:T):Class<T> {
+ public static function getClass<T>(o:T):Null<Class<T>> {
if (Object.ReferenceEquals(o, null) || Std.isOfType(o, DynamicObject) || Std.isOfType(o, cs.system.Type))
var cname = __global__["flash.utils.getQualifiedClassName"](o);
if (cname == "null" || cname == "Object" || cname == "int" || cname == "Number" || cname == "Boolean")
@@ -82,7 +82,7 @@ class Type {
allTypes.set(b, t);
var t = hl.Type.getDynamic(o);
if (t.kind == HVirtual) {
o = hl.Api.getVirtualValue(o);
@@ -37,7 +37,7 @@ enum ValueType {
if (o == null || Std.isOfType(o, DynamicObject) || Std.isOfType(o, java.lang.Class)) {
- public static inline function getClass<T>(o:T):Class<T> {
+ public static inline function getClass<T>(o:T):Null<Class<T>> {
return @:privateAccess js.Boot.getClass(o);
@@ -32,7 +32,7 @@ class Type {
return c.isAnnotationPresent(cast EnumValueReflectionInformation);
if (o == null) {
@@ -36,7 +36,7 @@ enum ValueType {
if (o == null)
@@ -34,7 +34,7 @@ enum ValueType {
- public static function getClass<T>( o : T ) : Class<T> untyped {
+ public static function getClass<T>( o : T ) : Null<Class<T>> untyped {
if( __dollar__typeof(o) != __dollar__tobject )
var p = __dollar__objgetproto(o);
@@ -39,7 +39,7 @@ enum ValueType {
if (Global.is_object(o) && !Boot.isClass(o) && !Boot.isEnumValue(o)) {
var cls = Boot.getClass(Global.get_class(cast o));
return (Boot.isAnon(o) ? null : cast cls);
@@ -40,7 +40,7 @@ enum ValueType {
@:access(python.Boot)