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

     1  package main
     2  
     3  type Foo interface {
     4  	foo()
     5  }
     6  
     7  func NewSet() Foo {
     8  	return 1
     9  }
    10  
    11  func main() {
    12  	NewSet()
    13  }
    14  
    15  // Error:
    16  // main/files/fun27.gno:8: <untyped> bigint does not implement main.Foo