github.com/traefik/yaegi@v0.15.1/_test/interface50.go (about)

     1  package main
     2  
     3  func main() {
     4  	a := true
     5  	var b interface{} = 5
     6  	println(b.(int))
     7  	b = a == true
     8  	println(b.(bool))
     9  }
    10  
    11  // Output:
    12  // 5
    13  // true