2012-02-16 23:51:04 -05:00
|
|
|
// errorcheck
|
2011-02-01 14:00:36 -05:00
|
|
|
|
2016-04-10 14:32:26 -07:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-02-01 14:00:36 -05:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func main() {
|
2020-02-06 15:32:40 -08:00
|
|
|
switch main() := interface{}(nil).(type) { // ERROR "invalid variable name|cannot use .* as value"
|
2011-02-01 14:00:36 -05:00
|
|
|
default:
|
|
|
|
}
|
|
|
|
}
|