You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use NativeCall; class MV is repr('CStruct') { has uint64 $.start; method s { if $!start {} } } # Fails
use NativeCall; class MV is repr('CStruct') { has uint64 $.start; method s { if +$!start {} } } # This works :/
From IRC:
<sortiz> And the error message is totally uninformative!
<Skarsnik> duh
<Skarsnik> I don't even get why it does not work x)
<sortiz> Toke me hours to find the point of the error!
<jnthn> Odd, that's a compile-time failure even
<jnthn> sortiz: Yeah, it's a crash during code-gen, bizzarely
use NativeCall; class MV is repr('CStruct') { has uint64 $.start;
method s { if $!start {} } } # Fails
use NativeCall; class MV is repr('CStruct') { has uint64 $.start;
method s { if +$!start {} } } # This works :/
From IRC:
<sortiz> And the error message is totally uninformative!
<Skarsnik> duh
<Skarsnik> I don't even get why it does not work x)
<sortiz> Toke me hours to find the point of the error!
<jnthn> Odd, that's a compile-time failure even
<jnthn> sortiz: Yeah, it's a crash during code-gen, bizzarely
Fixed the code-gen crash, and added tests in S12-attributes/native.t.
Migrated from rt.perl.org#127548 (status was 'resolved')
Searchable as RT127548$
The text was updated successfully, but these errors were encountered: