~vtuson/scopecreator/twitter-template

« back to all changes in this revision

Viewing changes to src/go/src/code.google.com/p/go.tools/go/types/testdata/issues.src

  • Committer: Victor Palau
  • Date: 2015-03-11 14:24:42 UTC
  • Revision ID: vtuson@gmail.com-20150311142442-f2pxp111c8ynv232
public release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2014 The Go Authors. All rights reserved.
 
2
// Use of this source code is governed by a BSD-style
 
3
// license that can be found in the LICENSE file.
 
4
 
 
5
package issues
 
6
 
 
7
import "fmt"
 
8
 
 
9
func issue7035() {
 
10
        type T struct{ X int }
 
11
        _ = func() {
 
12
                fmt.Println() // must refer to imported fmt rather than the fmt below
 
13
        }
 
14
        fmt := new(T)
 
15
        _ = fmt.X
 
16
}