Text file src/go/types/testdata/fixedbugs/issue39693.go2
Documentation: go/types/testdata/fixedbugs
1 // Copyright 2020 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 type Number interface { 8 int /* ERROR int is not an interface */ 9 float64 /* ERROR float64 is not an interface */ 10 } 11 12 func Add[T Number](a, b T) T { 13 return a /* ERROR not defined */ + b 14 } 15