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

     1  package main
     2  
     3  import "fmt"
     4  
     5  func main() {
     6  	a, b := 1, 1
     7  	for i := 0; i < 10; i++ {
     8  		fmt.Println(a)
     9  		a, b = b, a+b
    10  	}
    11  }
    12  
    13  // Output:
    14  // 1
    15  // 1
    16  // 2
    17  // 3
    18  // 5
    19  // 8
    20  // 13
    21  // 21
    22  // 34
    23  // 55