If the status is _, there is no storage allocated in frame, and the status assign operation should be skipped. Fixes #761.
14 lines
138 B
Go
14 lines
138 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
var i interface{} = 1
|
|
var s struct{}
|
|
s, _ = i.(struct{})
|
|
fmt.Println(s)
|
|
}
|
|
|
|
// Output:
|
|
// {}
|