Source file test/fixedbugs/issue13777.dir/burnin.go

     1  package burnin
     2  
     3  type sendCmdFunc func(string)
     4  
     5  func sendCommand(c string) {}
     6  
     7  func NewSomething() {
     8  	// This works...
     9  	// var sendCmd sendCmdFunc
    10  	// sendCmd = sendCommand
    11  
    12  	// So does this...
    13  	//sendCmd := sendCmdFunc(sendCommand)
    14  
    15  	// This fails...
    16  	sendCmd := sendCommand
    17  
    18  	_ = sendCmd
    19  }
    20  

View as plain text