You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yield [function(){}, function() : void{}, true, "unspecified type allows not returning anything (the same as void)"];
18
18
19
-
yield [function() : int{ return0; }, function(){}, false, "given function might return nothing, which is not allowed by an int type"];
20
-
yield [function() : mixed{ return0; }, function(){}, false, "given function might return nothing, which is not allowed by a mixed type"];
19
+
yield [function() : int{ die(); }, function(){}, false, "given function might return nothing, which is not allowed by an int type"];
20
+
yield [function() : mixed{ die(); }, function(){}, false, "given function might return nothing, which is not allowed by a mixed type"];
21
21
22
-
yield [function() : int|string{ return0; }, function() : int{ return0; }, true, "given function returns a type which is covariant with required"];
23
-
yield [function() : int{ return0; }, function() : int|string{ return0; }, false, "given function returns a type which is not covariant with required"];
24
-
yield [function() : float{ return0; }, function() : int{ return0; }, true, "int is covariant with float"];
22
+
yield [function() : int|string{ die(); }, function() : int{ die(); }, true, "given function returns a type which is covariant with required"];
23
+
yield [function() : int{ die(); }, function() : int|string{ die(); }, false, "given function returns a type which is not covariant with required"];
24
+
yield [function() : float{ die(); }, function() : int{ die(); }, true, "int is covariant with float"];
yield [function() : (Interface1&Interface2)|string{}, function() : Interface1{}, false, "given type not covariant with any part of required union"];
16
-
yield [function() : (Interface1&Interface2)|string{}, function() : Interface1&Interface2{}, true, "given type covariant with at least 1 part of required union"];
15
+
yield [function() : (Interface1&Interface2)|string{die(); }, function() : Interface1{die(); }, false, "given type not covariant with any part of required union"];
16
+
yield [function() : (Interface1&Interface2)|string{die(); }, function() : Interface1&Interface2{die(); }, true, "given type covariant with at least 1 part of required union"];
0 commit comments