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
Looking at the generated code, for some reason the compiler initializes the variadic argument differently depending on whether it's the only argument or not:
$r=test1(sliceType.nil);/* */$s=1; case 1: if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}$r=test2(100,newsliceType([]));/* */$s=2; case 2: if($c){$c=false;$r=$r.$blk();}if($r&&$r.$blk!==undefined){break s;}
According to the Go spec, this is a bug:
If f is invoked with no actual arguments for p, the value passed to p is nil.
demo
gopherjs run main.go
output error
The text was updated successfully, but these errors were encountered: