2014-03-03 17:55:40 -07:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
2014-03-03 17:55:40 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Internal compiler crash used to stop errors during second copy.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
2020-12-08 18:48:39 -07:00
|
|
|
_ = copy(nil, []int{}) // ERROR "use of untyped nil|untyped nil"
|
|
|
|
_ = copy([]int{}, nil) // ERROR "use of untyped nil|untyped nil"
|
|
|
|
_ = 1 + true // ERROR "mismatched types untyped int and untyped bool|untyped int .* untyped bool"
|
2014-03-03 17:55:40 -07:00
|
|
|
}
|