function D = intminLike(X)
%INTMINLIKE intminLike codistributed array
%   
%   D = intminLike(P) is a codistributed scalar with the value of intmin for the
%   underlyingType of P and matching all other attributes.
%   
%   P must have integer underlying type.
%   
%   See also INTMIN, CODISTRIBUTED.


%   Copyright 2021 The MathWorks, Inc.

if ~isinteger(X)
    error(message("MATLAB:intmin:invalidPrototype"));
end
D = buildScalarLike(@intmin, X);