convert NOTE to TODO so we catch it later

See #363

For Complex as a builtin type, see discussion in #949
This commit is contained in:
Andrew Kelley 2018-04-24 21:23:03 -04:00
parent 1d998d5dce
commit 84391af7b8
2 changed files with 1 additions and 3 deletions

View File

@ -23,7 +23,6 @@ pub const sqrt = @import("sqrt.zig").sqrt;
pub const tanh = @import("tanh.zig").tanh;
pub const tan = @import("tan.zig").tan;
// NOTE: Make this a builtin at some point?
pub fn Complex(comptime T: type) type {
return struct {
const Self = this;

View File

@ -4,8 +4,7 @@ const math = std.math;
const cmath = math.complex;
const Complex = cmath.Complex;
// NOTE: Returning @typeOf(z) here causes issues when trying to access the value. This is
// why we currently assign re, im parts to a new value explicitly for all tests.
// TODO when #733 is solved this can be @typeOf(z) instead of Complex(@typeOf(z.re))
pub fn sqrt(z: var) Complex(@typeOf(z.re)) {
const T = @typeOf(z.re);