mirror of
https://github.com/golang/go
synced 2024-11-23 17:30:02 -07:00
6a393dc64f
Fixes #16804 Change-Id: I669c2c24d3135cd35e15a464894ac66945847d0c Reviewed-on: https://go-review.googlesource.com/27437 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
17 lines
331 B
Go
17 lines
331 B
Go
// compile
|
|
|
|
// Copyright 2016 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.
|
|
|
|
// Issue 16804: internal error for math.Sqrt as statement
|
|
// rather than expression
|
|
|
|
package main
|
|
|
|
import "math"
|
|
|
|
func sqrt() {
|
|
math.Sqrt(2.0)
|
|
}
|