diff options
| author | Russ Cox <rsc@golang.org> | 2009-07-06 23:42:57 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-07-06 23:42:57 -0700 |
| commit | 84fcade90acd893ef30b1353d73d84584fcd5bb8 (patch) | |
| tree | 291df7b3c11db466dd45cb82f1f45b905700f555 /src/cmd/8c | |
| parent | 50501ef24e74e190e9c48646050205d02e2903dd (diff) | |
| download | golang-84fcade90acd893ef30b1353d73d84584fcd5bb8.tar.gz | |
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
Diffstat (limited to 'src/cmd/8c')
0 files changed, 0 insertions, 0 deletions
