summary refs log tree commit diff stats
path: root/bin
Commit message (Expand)AuthorAgeFilesLines
* 32 bit fixes (#10608)Arne Döring2019-02-131-0/+3
* fixes #9276 (#9317)Arne Döring2018-10-241-0/+0
* file mode bullshitAraq2018-08-051-0/+0
* Gdb pretty printers (#8263)Arne Döring2018-07-161-0/+18
* empty.txt files: Trim trailing whitespaceAdam Strzelecki2015-09-041-1/+1
* rewrote lambdalifting; fixes deeply nested closuresAraq2014-06-261-1/+1
* Merge pull request #1075 from flaviut/inlinedocsAndreas Rumpf2014-04-091-0/+1
web.de> 2018-12-11 10:25:26 +0100 committer Araq <rumpf_a@web.de> 2018-12-11 10:28:56 +0100 fixes #9868' href='/ahoang/Nim/commit/tests/misc/tsizeof2.nim?h=devel&id=4ec40796e64a6cf9fa34eaaf7de880076f8c2859'>4ec40796e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
           
                                                                      








                                           



                                                  

              
discard """
errormsg: "'sizeof' requires '.importc' types to be '.completeStruct'"
line: 9
"""

type
  MyStruct {.importc: "MyStruct".} = object

const i = sizeof(MyStruct)

echo i

# bug #9868
proc foo(a: SomeInteger): array[sizeof(a), byte] =
  discard

discard foo(1)