Skip to content

Commit b0c6920

Browse files
author
Lawrence
committed
parseConstrained now allows SoftLinks
Since it's nigh impossible for SoftLinks to validate themselves, we (for now) simply allow them access.
1 parent 6a6b8d9 commit b0c6920

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

+types/+util/parseConstrained.m

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
ikeys = false(size(varargin));
44
defprops = properties(obj);
55
for i=1:2:length(varargin)
6-
ikeys(i) = isa(varargin{i+1}, type) && ~any(strcmp(varargin{i}, defprops));
6+
if any(strcmp(varargin{i}, defprops))
7+
continue;
8+
end
9+
10+
arg = varargin{i+1};
11+
if isa(arg, 'types.untyped.ExternalLink')
12+
ikeys(i) = isa(arg.deref(), type);
13+
continue;
14+
end
15+
16+
ikeys(i) = isa(arg, type) || isa(arg, 'types.untyped.SoftLink');
717
end
818
ivals = circshift(ikeys,1);
919
if any(ikeys)

0 commit comments

Comments
 (0)