...
Run Format

Source file test/fixedbugs/issue17631.go

Documentation: test/fixedbugs

     1  // errorcheck
     2  
     3  // Copyright 2016 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  import "time"
    10  
    11  func main() {
    12  	_ = struct {
    13  		about      string
    14  		before     map[string]uint
    15  		update     map[string]int
    16  		updateTime time.Time
    17  		expect     map[string]int
    18  	}{
    19  		about:   "this one",
    20  		updates: map[string]int{"gopher": 10}, // ERROR "unknown field 'updates' in struct literal of type"
    21  	}
    22  }
    23  

View as plain text