-
-
Save Skarsnik/2ce915ed020db8fb91fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Output: | |
==_2509GPT::Class::PointerType const char** | |
PIKO : False | |
Method 'name' not found for invocant of class 'GPT::Class::PointerType' | |
in sub resolve-type at /root/piko/cpp/gptrixie/lib/GPT/DumbGenerator.pm6 line 71 | |
-- | |
debug "==" x $cpt ~ $t.id ~ $t.WHAT.perl ~ ' ' ~ $t; | |
if $t ~~ PointerType { | |
if $t.ref-type ~~ TypeDefType and $t.ref-type.ref-type ~~ FundamentalType and $t.ref-type.ref-type.name eq 'void' { | |
return $t.ref-type.name ~ 'Ptr'; | |
} | |
say "PIKO : " ~ ($t.ref-type ~~ FundamentalType); | |
LINE 71 return 'Str' if ($t.ref-type ~~ FundamentalType and $t.ref-type.name eq 'char') || | |
($t.ref-type ~~ QualifiedType and $t.ref-type.ref-type.name eq 'char'); | |
say "HELLO"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment