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

     1  package main
     2  
     3  type S string
     4  
     5  func main() {
     6  	a := "wqe"
     7  	b := S("qwe")
     8  	if false {
     9  		println(a + ":" + b)
    10  	}
    11  	println("done")
    12  }
    13  
    14  // Error:
    15  // main/files/type32.gno:9#1: incompatible types in binary expression: a<VPBlock(2,0)> + (const (":" string)) ADD b<VPBlock(2,1)>