'auto' can be inferred to be 'void'

This commit is contained in:
Araq 2015-02-12 17:32:35 +01:00
commit c44d947ac5
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,9 @@
import future
template tempo(s: expr) =
s("arg")
tempo((s: string)->auto => echo(s))
tempo((s: string) => echo(s))