diff --git a/src/cmd/compile/internal/typecheck/const.go b/src/cmd/compile/internal/typecheck/const.go index 2ac489aeef..9ad37033fd 100644 --- a/src/cmd/compile/internal/typecheck/const.go +++ b/src/cmd/compile/internal/typecheck/const.go @@ -305,8 +305,7 @@ func toint(v constant.Value) constant.Value { } // Prevent follow-on errors. - // TODO(mdempsky): Use constant.MakeUnknown() instead. - return constant.MakeInt64(1) + return constant.MakeUnknown() } func tostr(v constant.Value) constant.Value {