Skip to content

Commit

Permalink
Added reproductions for #138 & #139
Browse files Browse the repository at this point in the history
Also added to TODO.md
  • Loading branch information
vdka committed Mar 30, 2018
1 parent 557cc02 commit 567fb2b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/bugs/open/issue138.kai
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

a :: fn(b: any) -> void {
}

S :: struct{}

main :: fn() -> void {
a([]u8{})
a(S{})
}

7 changes: 7 additions & 0 deletions code/bugs/open/issue139.kai
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#import kai("arrays")

main :: fn() -> void {
buf := []u8{}
arrays.Append(&buf, true ? "i" : "u")
}
8 changes: 8 additions & 0 deletions docs/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ turn:
into:
Mmap(nil, 4 * 1024 * 1024, prot: READ | WRITE, flags: FILE | SHARED, fd, offset: 0)

- improve error for invoking on incorrect file
ERROR: print.kaik was invalid!


# Types Package
- Emit a generated file for reference to
- For the types package use enum #flags for the flags member
- Flag to indicate explicit backing type on Enum & for enum #flags

0 comments on commit 567fb2b

Please sign in to comment.