-
-
Save iffy/00b4426ebeaa870c4691ebe27bb09e8b 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
proc foo*(x:string):string = | |
return x |
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
proc foo*(x:string):string | |
when defined(macosx): | |
import ./macos | |
else: | |
import ./win |
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
$ 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 |
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
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