/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/syntax/typesw.go
13 строк
318 B
Robert Griesemer
cmd/compile/internal/syntax: better error when an assignment is used in value context
22 фев 2020, 01:57
22 фев 2020, 01:57
ffc0573
Код
Авторство
О чём код?
// 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. package main func main() { switch main() := interface{}(nil).(type) { // ERROR "invalid variable name|cannot use .* as value" default: } }