mirror of
https://github.com/golang/go
synced 2024-11-24 06:00:11 -07:00
32dffef098
Variables declared with 'var' have no sym->def. Fixes #7794. LGTM=rsc R=golang-codereviews, bradfitz, rsc CC=golang-codereviews https://golang.org/cl/88360043
13 lines
237 B
Go
13 lines
237 B
Go
// compile
|
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
func main() {
|
|
var a [10]int
|
|
const ca = len(a)
|
|
}
|