diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-13 16:34:33 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-13 16:34:33 -0400 |
| commit | c06a61e9bf93810174255474598cfeae785cfbd6 (patch) | |
| tree | 27d8f4262d8cd8c72c75e348e63e6c7d6a6ec0d4 /std/lazy_init.zig | |
| parent | 7c3636aaa38e8efa77b73ba94362802517ea739e (diff) | |
| download | zig-c06a61e9bf93810174255474598cfeae785cfbd6.tar.gz zig-c06a61e9bf93810174255474598cfeae785cfbd6.zip | |
remove `this`. add `@This()`.
closes #1283
Diffstat (limited to 'std/lazy_init.zig')
| -rw-r--r-- | std/lazy_init.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/lazy_init.zig b/std/lazy_init.zig index c46c067810..f08c01e874 100644 --- a/std/lazy_init.zig +++ b/std/lazy_init.zig @@ -18,7 +18,7 @@ fn LazyInit(comptime T: type) type { state: u8, // TODO make this an enum data: Data, - const Self = this; + const Self = @This(); // TODO this isn't working for void, investigate and then remove this special case const Data = if (@sizeOf(T) == 0) u8 else T; |
