Commit c0f6144f authored by Ian Lance Taylor's avatar Ian Lance Taylor

Test that a const with an explicit type is not treated as

having an abstract type.

R=gri
DELTA=11  (11 added, 0 deleted, 0 changed)
OCL=22829
CL=22832
parent 94146819
// errchk $G $D/$F.go
// Copyright 2009 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() {
const a uint64 = 10;
var b int64 = a;
}
......@@ -143,6 +143,9 @@ BUG129
bugs/bug130.go:14: fatal error: getoutarg: not a func RANGE
BUG: should run
=========== bugs/bug131.go
BUG: should not compile
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: overflow converting constant to uint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment