diff options
author | Araq <rumpf_a@web.de> | 2018-05-02 10:51:55 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-05-02 13:34:54 +0200 |
commit | 21cbf438ceae059f528cfd28bbeec5b637e210ac (patch) | |
tree | e8bcb370ff43d5dbddeb2f7b05ac3c6a3dc453fc /tests/distinct | |
parent | eb03d9aafe947384440285dfb28be31d2bb1fb0f (diff) | |
download | Nim-21cbf438ceae059f528cfd28bbeec5b637e210ac.tar.gz |
make tests green
Diffstat (limited to 'tests/distinct')
-rw-r--r-- | tests/distinct/tnil.nim | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/distinct/tnil.nim b/tests/distinct/tnil.nim index e60437a1f..759a14657 100644 --- a/tests/distinct/tnil.nim +++ b/tests/distinct/tnil.nim @@ -1,15 +1,11 @@ discard """ file: "tnil.nim" - output: '''0x1 - -nil - -nil - + output: '''1 +0 +0 ''' - disabled: "windows" """ - +{.experimental: "notnil".} type MyPointer = distinct pointer MyString = distinct string @@ -17,7 +13,8 @@ type MyInt = distinct int proc foo(a: MyPointer) = - echo a.repr + # workaround a Windows 'repr' difference: + echo cast[int](a) foo(cast[MyPointer](1)) foo(cast[MyPointer](nil)) |