Skip to content

Mouse won't warn when overwriting a method with an accessor #86

@ybrliiu

Description

@ybrliiu

In Moose

package Foo {
  use Moose;
  has hello => ( is => 'ro' );
  sub hello { }
}

=> You are overwriting a locally defined method (hello) with an accessor

In Mouse

package Foo {
  use Mouse;
  has hello => ( is => 'ro' );
  sub hello { }
}

=> No warning and error

I guess Mouse should warn in such case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions