Guest User

Untitled

a guest
Jun 7th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. # case 1
  2. proc f(s:string) {.compileTime.} = echo s
  3. let s {.compileTime.} = "hello world"
  4. f(s)
  5. # should be
  6. # const S = f(s)
  7. # echo s
  8.  
  9. # case 2
  10. proc f(s:static[string]) =
  11. static:
  12. echo s
  13. discard
  14. let s {.compileTime.} = "hello world"
  15. f(s)
Advertisement
Add Comment
Please, Sign In to add comment