Skip to content

priv impls do not create private methods #3452

Closed
@brson

Description

@brson

This suprised me:

impl foo {
  // This method is private
  priv fn bar() { }
}

priv impl foo {
  // This method is public even though the impl is private.
  fn bar() { }
}

priv impl doesn't do anything.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions