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

     1  // -lang=go1.16
     2  
     3  // Copyright 2024 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  //go:build go1.21
     8  
     9  package main
    10  
    11  import "slices"
    12  
    13  func main() {
    14  	_ = slices.Clone([]string{}) // no error should be reported here
    15  }
    16  

View as plain text