Too broad type when argument has default
string foo(string|void bar="hej") {
return sprintf("%O", typeof(bar));
}
The type of the variable bar is "string|void" despite never being void.
string foo(string|void bar="hej") {
return sprintf("%O", typeof(bar));
}
The type of the variable bar is "string|void" despite never being void.