github.com/traefik/yaegi@v0.15.1/_test/issue-1354.go (about) 1 package main 2 3 func main() { 4 println(test()) // Go prints true, Yaegi false 5 } 6 7 func test() bool { 8 if true { 9 goto label 10 } 11 goto label 12 label: 13 println("Go continues here") 14 return true 15 println("Yaegi goes straight to this return (this line is never printed)") 16 return false 17 } 18 19 // Output: 20 // Go continues here 21 // true