diff options
| author | Ben Noordhuis <info@bnoordhuis.nl> | 2018-02-23 15:25:42 +0100 |
|---|---|---|
| committer | Ben Noordhuis <info@bnoordhuis.nl> | 2018-02-23 15:55:57 +0100 |
| commit | f11b9480192dea44acb92cb9edd7a91c7c73cd2f (patch) | |
| tree | 5172a83b0a23842d661d4e2d8bf74587e902913d /src/error.cpp | |
| parent | b66547e98c9034e52c5647735b47dc24939c8d15 (diff) | |
| download | zig-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 'src/error.cpp')
0 files changed, 0 insertions, 0 deletions
