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

     1  package main
     2  
     3  func f1() int { return 1 }
     4  
     5  func f1() int { return 2 }
     6  
     7  func main() {
     8  	println("hello", f1())
     9  }
    10  
    11  // Error:
    12  // files/redeclaration7.gno:5:6: f1 redeclared in this block
    13  // 	previous declaration at files/redeclaration7.gno:3:6