github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/const9.gno (about)

     1  package main
     2  
     3  const (
     4  	a = 2
     5  	b = c + d
     6  	c = a + d
     7  	d = e + f
     8  	e = b + 2
     9  	f = 4
    10  )
    11  
    12  func main() {
    13  	println(b)
    14  }
    15  
    16  // Error:
    17  // main/files/const9.gno:1: constant definition loop with b