parent interfaces need to be explicitely implemented in the main contract #454
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: marc0olo
I expected to be the parent interface indirectly known by the main contract. I am not sure if this is intended behavior to require it to be implemented explicitely.
I can't recall the case 100% right now, but I am pretty sure I experienced this.
assuming interface
Ainherits fromB, I would still need to implement both,AandB, explicitely in the main contract.Created by: radrow
Can you craft a minimal example?
@marc0olo Are you talking about the case in this example where you have to explicitly redeclare the functions from the parent interface?
Created by: marc0olo
yeah I think that describes it. is there a specific reason it is like that? I assume this is on purpose then (sorry, I didn't check the docs yet)
Created by: radrow
This is done on purpose for the sake of explicitness. Note that interfaces are entirely abstract and they don't provide implementation.