Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
apozharski committed Jul 22, 2024
1 parent 4278a23 commit 9772a5a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/t89MetaclassLiterals.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
% SYNTAX TEST "source.matlab" "Property validation: https://github.com/mathworks/MATLAB-Language-grammar/issues/89"
classdef (AllowedSubclasses = {?SubClass1,?namespace1.SubClass2}) SuperClass
% ^^^^^^^^^ meta.metaclass.matlab entity.other.class.matlab
% ^^^^^^^^^^^^^^^^^^^^ meta.metaclass.matlab
% ^^^^^^^^^^ entity.name.namespace.matlab
% ^^^^^^^^^ entity.other.class.matlab
methods
function foo()
x = ?namespace2.cls
% ^^^^^^^^^^^^^^ meta.metaclass.matlab
% ^^^^^^^^^^ entity.name.namespace.matlab
% ^^^ entity.other.class.matlab
y = ?MyClass
% ^^^^^^^ meta.metaclass.matlab entity.other.class.matlab
end
end
end

0 comments on commit 9772a5a

Please sign in to comment.