浏览代码

[doc] Std.is returns false for @:generic types (closes #7914)

Aleksandr Kuzmenko 6 年之前
父节点
当前提交
c5c57397f8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      std/Std.hx

+ 2 - 0
std/Std.hx

@@ -29,6 +29,8 @@
 extern class Std {
 	/**
 		Tells if a value `v` is of the type `t`. Returns `false` if `v` or `t` are null.
+
+		If `t` is a class or interface with `@:generic` meta, the result is `false`.
 	**/
 	public static function is(v:Dynamic, t:Dynamic):Bool;