diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-10 16:33:55 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-10 16:33:55 +0100 |
commit | 96b828a3863c28680e8a5b0165c5e0bbcca7a46c (patch) | |
tree | 6ab8e58da5bf2dde1c0c865f60ef9ecf1a55ba15 /tests/accept/compile | |
parent | 2e280eafa8b13802980cf0e2f309342742e61347 (diff) | |
download | Nim-96b828a3863c28680e8a5b0165c5e0bbcca7a46c.tar.gz |
bugfix: len openarray
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-x | tests/accept/compile/tmodulealias.nim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/accept/compile/tmodulealias.nim b/tests/accept/compile/tmodulealias.nim new file mode 100755 index 000000000..1154cb99d --- /dev/null +++ b/tests/accept/compile/tmodulealias.nim @@ -0,0 +1,17 @@ + + +when defined(windows): + import winlean +else: + import posix + +when defined(Windows): + template orig: expr = + winlean +else: + template orig: expr = + posix + +proc socket(domain, typ, protocol: int): int = + result = orig.socket(ord(domain), ord(typ), ord(protocol))) + |