Skip to content

Commit

Permalink
Anon types now properly reports if it's unset
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancewiu committed May 15, 2019
1 parent 770fd2d commit c21be46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions +types/+untyped/Anon.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
obj.value = val;
end

function tf = isempty(obj)
tf = isempty(obj.name);
end

function refs = export(obj, fid, fullpath, refs)
refs = obj.value.export(fid, [fullpath obj.name '/'], refs);
end
Expand Down

0 comments on commit c21be46

Please sign in to comment.