zig/test
Ben Noordhuis f11b948019 allow implicit cast from S to ?&const S
Allow implicit casts from container types to nullable const pointers to
said container type.  That is:

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

    fn g(_: ?&const S) void {  // Nullable const pointer.
    }

Fixes #731.
2018-02-23 15:55:57 +01:00
..
cases allow implicit cast from S to ?&const S 2018-02-23 15:55:57 +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