Browse Source

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

Aleksandr Kuzmenko 6 years ago
parent
commit
c5c57397f8
1 changed files with 2 additions and 0 deletions
  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;