1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package p 6 7 import "math/big" 8 9 // From go.dev/issue/18419 10 func _(x *big.Float) { 11 x.form /* ERROR "x.form undefined (cannot refer to unexported field form)" */ () 12 } 13 14 // From go.dev/issue/31053 15 func _() { 16 _ = big.Float{form /* ERROR "cannot refer to unexported field form in struct literal of type big.Float" */ : 0} 17 } 18