Source file src/internal/types/testdata/fixedbugs/issue70549.go
1 // Copyright 2025 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" 8 9 var ( 10 _ = math.Sqrt 11 _ = math.SQrt /* ERROR "undefined: math.SQrt (but have Sqrt)" */ 12 _ = math.sqrt /* ERROR "name sqrt not exported by package math" */ 13 _ = math.Foo /* ERROR "undefined: math.Foo" */ 14 _ = math.foo /* ERROR "undefined: math.foo" */ 15 ) 16