Source file test/fixedbugs/bug047.go

     1  // run
     2  
     3  // Copyright 2009 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  package main
     8  
     9  func main() {
    10  
    11  	type T struct {
    12  		s string
    13  		f float64
    14  	}
    15  	var s string = "hello"
    16  	var f float64 = 0.2
    17  	t := T{s, f}
    18  
    19  	type M map[int]int
    20  	m0 := M{7: 8}
    21  
    22  	_, _ = t, m0
    23  }
    24  

View as plain text