'auto' can be inferred to be 'void'
This commit is contained in:
parent
f039aad5e0
commit
c44d947ac5
2 changed files with 15 additions and 1 deletions
9
tests/types/tauto_canbe_void.nim
Normal file
9
tests/types/tauto_canbe_void.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
import future
|
||||
|
||||
template tempo(s: expr) =
|
||||
s("arg")
|
||||
|
||||
tempo((s: string)->auto => echo(s))
|
||||
tempo((s: string) => echo(s))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue