Source file test/fixedbugs/issue49665.go

     1  // run
     2  
     3  // Copyright 2021 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  package main
     8  
     9  import "fmt"
    10  
    11  var x any
    12  var y interface{}
    13  
    14  var _ = &x == &y // assert x and y have identical types
    15  
    16  func main() {
    17  	fmt.Printf("%T\n%T\n", &x, &y)
    18  }
    19  

View as plain text