1
0
mirror of https://github.com/golang/go synced 2024-11-26 16:46:58 -07:00
go/test/fixedbugs/issue7648.dir/a.go
Shenghou Ma 15bc7ab957 cmd/gc: fix spurious "bad negated constant" for complex constants.
Fixes #7648.

LGTM=r, remyoudompheng
R=golang-codereviews, r, remyoudompheng, jscrockett01
CC=golang-codereviews
https://golang.org/cl/80560045
2014-04-01 02:55:38 -04:00

12 lines
275 B
Go

// 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 a
const (
sinPi4 = 0.70710678118654752440084436210484903928483593768847
A = complex(sinPi4, -sinPi4)
)