impl icon indicating copy to clipboard operation
impl copied to clipboard

Interfaces that embed imported interfaces break `impl`

Open lanzafame opened this issue 7 years ago • 2 comments

I am attempting to generate the stubs for the Node interface but I get a not an interface: blocks.Block:

import (
	blocks "github.com/ipfs/go-block-format"
)

type Node interface {
	blocks.Block
	Resolver
// snipped for brevity
}

From the blocks package:

// Block provides abstraction for blocks implementations.
type Block interface {
	RawData() []byte
	Cid() *cid.Cid
	String() string
	Loggable() map[string]interface{}
}

lanzafame avatar Sep 28 '18 04:09 lanzafame

Is there any fix on this?

wangmir avatar Apr 10 '23 12:04 wangmir

Nope, although I would be happy to review a PR.

josharian avatar Apr 19 '23 17:04 josharian