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() {
|
|
|
|
_ = copy(nil, []int{}) // ERROR "use of untyped nil"
|
|
|
|
_ = copy([]int{}, nil) // ERROR "use of untyped nil"
|
2019-09-06 17:05:36 -06:00
|
|
|
_ = 1 + true // ERROR "mismatched types untyped int and untyped bool"
|
2014-03-03 17:55:40 -07:00
|
|
|
}
|