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

     1  // Copyright 2026 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 _() {
     8  	copy(nil /* ERROR "argument must be a slice; have untyped nil" */, []byte{})
     9  }
    10  
    11  // test case from issue
    12  
    13  func f() {
    14  	var raw []byte
    15  
    16  	copy(nil /* ERROR "argument must be a slice; have untyped nil" */, raw)
    17  }
    18  

View as plain text