pave the road for function pointers

See #14
This commit is contained in:
Andrew Kelley
2016-01-18 08:50:10 -07:00
parent 4c50606b9d
commit 3a326d5005
7 changed files with 110 additions and 137 deletions

View File

@@ -1296,10 +1296,6 @@ fn f() => {
fn f(a : unreachable) => {}
)SOURCE", 1, ".tmp_source.zig:2:10: error: parameter of type 'unreachable' not allowed");
add_compile_fail_case("exporting a void parameter", R"SOURCE(
export fn f(a : void) => {}
)SOURCE", 1, ".tmp_source.zig:2:17: error: parameter of type 'void' not allowed on exported functions");
add_compile_fail_case("unused label", R"SOURCE(
fn f() => {
a_label: