function A = subsasgnBraces(A, aidx, B) %#ok<INUSD>
% Brace assignment for general distributed arraus (not currently supported)

% Copyright 2018-2019 The MathWorks, Inc.

% Brace assignment of numericish data is not allowed. For cells it isn't supported yet.
if iscell(A)
    % Cell content assignment is not yet supported.
    error(message('parallel:distributed:SubsasgnBadIndexType'));
else
    % Throw same error as MATLAB.
    error(message("MATLAB:cellAssToNonCell"));
end
end