go 11 源码

  • 2022-07-15
  • 浏览 (842)

golang 11 代码

文件路径:/test/typeparam/mdempsky/11.go

// errorcheck

// 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.

// Reported by Cuong Manh Le.

package p

type a struct{}

//go:notinheap
type b a

var _ = (*b)(new(a)) // ERROR "cannot convert"

相关信息

go 源码目录

相关文章

go 1 源码

go 10 源码

go 12 源码

go 13 源码

go 14 源码

go 15 源码

go 2 源码

go 3 源码

go 4 源码

go 5 源码

0  赞