github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/access6.gno (about) 1 package main 2 3 import ( 4 "gno.land/p/demo/testutils" 5 ) 6 7 type mystruct struct{} 8 9 func (_ mystruct) privateMethod() string { 10 return "mystruct.privateMethod" 11 } 12 13 func main() { 14 x := mystruct{} 15 testutils.PrintPrivateInterface(x) 16 } 17 18 // Error: 19 // main/files/access6.gno:15: main.mystruct does not implement gno.land/p/demo/testutils.PrivateInterface