2012-02-17 04:49:59 +00:00
|
|
|
// errorcheck
|
2010-07-27 00:34:17 +00:00
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
2010-07-27 00:34:17 +00:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Used to crash; issue 961.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
type ByteSize float64
|
|
|
|
const (
|
|
|
|
_ = iota; // ignore first value by assigning to blank identifier
|
2013-02-02 04:10:02 +00:00
|
|
|
KB ByteSize = 1<<(10*X) // ERROR "undefined" "is not a constant|as type ByteSize"
|
2010-07-27 00:34:17 +00:00
|
|
|
)
|