소스 검색

[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;