It seems that the predefined variable $self is required to be an Moose::Object. However, while around or after new(), the class name is given to $self, which does not satisfy the type constraint and produces an fatal error. How to solve that problem?
Thanks!