mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
check: ensure interface methods are public
This commit is contained in:
1 parent
88efa8360f
commit
e766e9ecde
1 file changed
+1
-1
+1
-1
@@ -679,7 +679,7 @@ func (c *Checker) checkFuncImplements(node *a.Node) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if (n.Effect() != o.Effect()) || !n.Out().Eq(o.Out()) {
|
||||
if !n.Public() || (n.Effect() != o.Effect()) || !n.Out().Eq(o.Out()) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user