/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug216.go
20 строк
418 B
Brad Fitzpatrick
all: link to https instead of http
11 июл 2015, 17:36
11 июл 2015, 17:36
2ae7737
Код
Авторство
О чём код?
// compile // 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. // Used to be rejected // https://golang.org/issue/188 package main func complexSqrt(i int) (int, int) { return 0, 1 } var re, im = complexSqrt(-1) func main() { if re != 0 || im != 1 { println("BUG: bug216: want 0,-1 have ", re, im) } }