zig/test
Ben Noordhuis 9aa65c0e8e allow implicit cast from &const to ?&const &const
Allow implicit casts from n-th degree const pointers to nullable const
pointers of degree n+1.  That is:

    fn f() void {
        const s = S {};
        const p = &s;
        g(p);   // Works.
        g(&p);  // So does this.
    }

    fn g(_: ?&const &const S) void {  // Nullable 2nd degree const ptr.
    }

Fixes #731 some more.
2018-02-26 19:56:26 +01:00
..
cases allow implicit cast from &const to ?&const &const 2018-02-26 19:56:26 +01:00
standalone introduce std.heap.ArenaAllocator and std.heap.DirectAllocator 2018-02-12 02:14:44 -05:00
assemble_and_link.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
behavior.zig fix compiler crash when struct contains... 2018-02-15 12:14:20 -05:00
build_examples.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
compare_output.zig std.os and std.io API update 2018-02-10 21:02:24 -05:00
compile_errors.zig ability to slice an undefined pointer at compile time if the len is 0 2018-02-16 15:22:29 -05:00
gen_h.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
runtime_safety.zig error sets: runtime safety for int-to-err and err set cast 2018-02-08 21:54:44 -05:00
tests.zig std lib: modify allocator idiom 2018-02-09 18:27:50 -05:00
translate_c.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00