aboutsummaryrefslogtreecommitdiff
path: root/std/debug
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2018-02-23 15:25:42 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2018-02-23 15:55:57 +0100
commitf11b9480192dea44acb92cb9edd7a91c7c73cd2f (patch)
tree5172a83b0a23842d661d4e2d8bf74587e902913d /std/debug
parentb66547e98c9034e52c5647735b47dc24939c8d15 (diff)
downloadzig-f11b9480192dea44acb92cb9edd7a91c7c73cd2f.tar.gz
zig-f11b9480192dea44acb92cb9edd7a91c7c73cd2f.zip
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.
Diffstat (limited to 'std/debug')
0 files changed, 0 insertions, 0 deletions