Source file test/fixedbugs/issue53619.go

     1  // run
     2  
     3  // Copyright 2022 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  var c = b
    10  var d = a
    11  
    12  var a, b any = any(nil).(bool)
    13  
    14  func main() {
    15  	if c != false {
    16  		panic(c)
    17  	}
    18  	if d != false {
    19  		panic(d)
    20  	}
    21  }
    22  

View as plain text