New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repr trait on a class definition after a forward declaration doesn't take affect #4385
Comments
From @hoelzroSee the attached test script. If I forward declare a class, like so: class Foo { ... } ...and define the class later on, in addition to using the repr trait: class Foo is repr('CPointer') { ... } ...the repr trait takes no effect. If this is the intended behavior, a warning or error should probably be emitted. |
From @hoelzrouse Test; plan 1; class Foo { ... } class Foo is repr('CPointer') { is Foo.REPR, 'CPointer'; |
From @jnthnOn Tue Jul 07 22:02:46 2015, rob@hoelz.ro wrote:
Yes, it's intended; we have to pick a representation at the point we create the type object. Made it an error now, and added a test in S32-exceptions/misc.t. |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#125574 (status was 'resolved')
Searchable as RT125574$
The text was updated successfully, but these errors were encountered: