From 567fb2b8ede557941732c95fc9cce768f0b05420 Mon Sep 17 00:00:00 2001 From: vdka Date: Fri, 30 Mar 2018 15:52:57 +1100 Subject: [PATCH] Added reproductions for #138 & #139 Also added to TODO.md --- code/bugs/open/issue138.kai | 11 +++++++++++ code/bugs/open/issue139.kai | 7 +++++++ docs/TODO.md | 8 ++++++++ 3 files changed, 26 insertions(+) create mode 100644 code/bugs/open/issue138.kai create mode 100644 code/bugs/open/issue139.kai diff --git a/code/bugs/open/issue138.kai b/code/bugs/open/issue138.kai new file mode 100644 index 0000000..4c87de5 --- /dev/null +++ b/code/bugs/open/issue138.kai @@ -0,0 +1,11 @@ + +a :: fn(b: any) -> void { +} + +S :: struct{} + +main :: fn() -> void { + a([]u8{}) + a(S{}) +} + diff --git a/code/bugs/open/issue139.kai b/code/bugs/open/issue139.kai new file mode 100644 index 0000000..41f6a5c --- /dev/null +++ b/code/bugs/open/issue139.kai @@ -0,0 +1,7 @@ + +#import kai("arrays") + +main :: fn() -> void { + buf := []u8{} + arrays.Append(&buf, true ? "i" : "u") +} diff --git a/docs/TODO.md b/docs/TODO.md index adb3a3c..77e6eba 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -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