Skip to content

Instantly share code, notes, and snippets.

@Xe

Xe/compiler.out Secret

Created June 30, 2017 21:33
Show Gist options
  • Save Xe/629589bf46eb45e2e8b4e7fdacfd5c6d to your computer and use it in GitHub Desktop.
Save Xe/629589bf46eb45e2e8b4e7fdacfd5c6d to your computer and use it in GitHub Desktop.
[~/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:πŸ–‹'
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