fix isNull() type loss

This commit is contained in:
2022-08-02 15:27:04 +00:00
parent 69cc312465
commit 865456b6c5

View File

@@ -349,7 +349,7 @@ class Prelude {
public static var joinPath:Function = Reflect.makeVarArgs(_joinPath);
public static function isNull(v:Any) {
public static function isNull<T>(v:T) {
return switch (Type.typeof(v)) {
case TNull: true;
default: false;