diff options
author | Araq <rumpf_a@web.de> | 2011-09-24 19:18:08 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-09-24 19:18:08 +0200 |
commit | 485c371942cbbb1f9a10c64b6fcc699e59511460 (patch) | |
tree | 06afc132570838dd1b64c70b79d64f8fff3509b6 /tests/accept | |
parent | 72ceda98cbbef896c31102a2c90d5f9fe1033d03 (diff) | |
download | Nim-485c371942cbbb1f9a10c64b6fcc699e59511460.tar.gz |
renamed optional to discardable
Diffstat (limited to 'tests/accept')
-rw-r--r-- | tests/accept/compile/tdiscardable.nim (renamed from tests/accept/compile/toptional_pragma.nim) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/accept/compile/toptional_pragma.nim b/tests/accept/compile/tdiscardable.nim index 80ebe68a3..c0551ba2f 100644 --- a/tests/accept/compile/toptional_pragma.nim +++ b/tests/accept/compile/tdiscardable.nim @@ -1,10 +1,10 @@ -# Test the optional pragma +# Test the discardable pragma -proc p(x, y: int): int {.optional.} = +proc p(x, y: int): int {.discardable.} = return x + y # test that it is inherited from generic procs too: -proc q[T](x, y: T): T {.optional.} = +proc q[T](x, y: T): T {.discardable.} = return x + y |