/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue45743.go
20 строк
326 B
Matthew Dempsky
cmd/compile: workaround inlining of closures with type switches
27 апр 2021, 00:27
27 апр 2021, 00:27
9f60169
Код
Авторство
О чём код?
// compile // Copyright 2021 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 fn() func(interface{}) { return func(o interface{}) { switch v := o.(type) { case *int: *v = 1 } } } func main() { fn() }