github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/access2.gno (about) 1 // PKGPATH: gno.land/r/access_test 2 package access_test 3 4 import ( 5 "gno.land/p/demo/testutils" 6 ) 7 8 func main() { 9 testutils.TestVar1 += 1 10 println(testutils.TestVar1) 11 } 12 13 // Error: 14 // cannot modify external-realm or non-realm object