Source file src/internal/types/testdata/fixedbugs/issue49735.go

     1  // Copyright 2022 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  func _[P1 any, P2 ~byte](s1 P1, s2 P2) {
     8          _ = append(nil /* ERROR "first argument to append must be a slice; have untyped nil" */ , 0)
     9          _ = append(s1 /* ERRORx `s1 .* has no core type` */ , 0)
    10          _ = append(s2 /* ERRORx `s2 .* has core type byte` */ , 0)
    11  }
    12  

View as plain text