Skip to content

Instantly share code, notes, and snippets.

@iffy

iffy/macos.nim Secret

Last active October 29, 2018 18:11
Show Gist options
  • Save iffy/00b4426ebeaa870c4691ebe27bb09e8b to your computer and use it in GitHub Desktop.
Save iffy/00b4426ebeaa870c4691ebe27bb09e8b to your computer and use it in GitHub Desktop.
proc foo*(x:string):string =
return x
proc foo*(x:string):string
when defined(macosx):
import ./macos
else:
import ./win
$ nim c main.nim
Hint: used config file '/Users/matt/lib/Nim/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: main [Processing]
Hint: macos [Processing]
main.nim(1, 6) Error: implementation of 'main.foo(x: string)[declared in main.nim(1, 5)]' expected
proc foo*(x:string):string =
return x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment