The class definition no longer results in a NullPointerException: $ perl6-j -e 'class Foo is repr<CStruct> { has int32 $.idontcare; has Foo $.bar }; say "alive"' alive
But it's not possible to create an object of class Foo (works on MoarVM): $ perl6-j -e 'class Foo is repr<CStruct> { has int32 $.idontcare; has Foo $.bar }; my $a = Foo.new; say "alive"' java.lang.NoClassDefFoundError: L__CStruct__1; in method bless at gen/jvm/CORE.setting:949 in method new at gen/jvm/CORE.setting:935 in block <unit> at -e:1