/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/bug362.go
16 строк
570 B
Robert Griesemer
[dev.typeparams] test: finish triaging all outstanding failing tests
15 дек 2020, 00:28
15 дек 2020, 00:28
5aca6e7
Код
Авторство
О чём код?
// errorcheck // Copyright 2011 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 1662 // iota inside var package main var ( a = iota // ERROR "undefined: iota|iota is only defined in const|cannot use iota outside constant declaration" b = iota // ERROR "undefined: iota|iota is only defined in const|cannot use iota outside constant declaration" c = iota // ERROR "undefined: iota|iota is only defined in const|cannot use iota outside constant declaration" )