-
-
Save Xe/629589bf46eb45e2e8b4e7fdacfd5c6d 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
[~/c/c/t/ppap] : nim c -r ppap.nim | |
Hint: used config file '/home/xena/.choosenim/toolchains/nim-0.17.0/config/nim.cfg' [Conf] | |
Hint: system [Processing] | |
Hint: ppap [Processing] | |
ppap.nim(8, 11) Error: identifier expected, but found 'p:π' |
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
type | |
π = object | |
π = object | |
π = object | |
ππ = object | |
ππ = object | |
proc `$`(p:π): string = "π" | |
proc `$`(a:π): string = "π" | |
proc `$`(p:π): string = "π" | |
proc `$`(ap:ππ): string = "ππ" | |
proc `$`(pp:ππ): string = "ππ" | |
echo π(), π(), " -> ", ππ() | |
echo π(), π(), " -> ", ππ() | |
echo ππ(), ππ() | |
echo π(), π(), π(), π() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment