gitlab.com/ethan.reesor/vscode-notebooks/yaegi@v0.0.0-20220417214422-5c573557938e/_test/new2.go (about)

     1  package main
     2  
     3  func f() interface{} {
     4  	return new(int)
     5  }
     6  
     7  func main() {
     8  	a := f()
     9  	println(*(a.(*int)))
    10  }
    11  
    12  // Output:
    13  // 0