• Russ Cox's avatar
    insert ODCL in type switch case. · 0417aafe
    Russ Cox authored
    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
    0417aafe
swt.c 14.6 KB