123456789101112131415161718192021222324252627 |
- discard """
- output: '''12
- int
- int
- int'''
- """
- import typetraits
- # bug #1805
- proc foob(x: int): string = "foo"
- proc barb(x: string): int = 12
- echo(foob(10).barb()) # works
- echo(type(10).name()) # doesn't work
- echo(name(type(10))) # works
- echo((type(10)).name()) # works
- # test that 'addr' still works
- proc poo(x, y: ptr int) = discard
- var someInt: int
- poo(addr someInt, addr someInt)
|