Defining an interface which returns a non Dagger core type as for example bool, causes the code generation to fail:
./dagger.gen.go:161:21: too many return values have (bool, nil) want (bool)
./dagger.gen.go:166:19: too many return values
have (bool, error)
want (bool)
./dagger.gen.go:166:29: undefined: ctx
Repo containing the example code from the interfaces documentation:
https://github.com/puzzle/dagger-interface-example