On Mon Feb 15 15:31:50 2016, sortiz wrote: > 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. /jnthn