rewrite3.golden 422 B

1234567891011121314
  1. //gofmt -r=x->x
  2. // Copyright 2011 The Go Authors. All rights reserved.
  3. // Use of this source code is governed by a BSD-style
  4. // license that can be found in the LICENSE file.
  5. package main
  6. // Field tags are *ast.BasicLit nodes that are nil when the tag is
  7. // absent. These nil nodes must not be mistaken for expressions,
  8. // the rewriter should not try to dereference them. Was issue 2410.
  9. type Foo struct {
  10. Field int
  11. }