github.com/switchupcb/yaegi@v0.10.2/_test/issue-1093.go (about)

     1  package main
     2  
     3  func b() string {
     4  	return "b"
     5  }
     6  
     7  func main() {
     8  	var x int
     9  	x = "a" + b()
    10  }
    11  
    12  // Error:
    13  // 9:6: cannot use type untyped string as type int in assignment