insert ODCL in type switch case.
needed for heap allocation if variable escapes. package main func main(){ var i interface{} = 42; switch v := i.(type) { case int: println(&v, v); } } R=ken OCL=31245 CL=31245
Showing
Please
register
or
sign in
to comment