Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ibond84 committed Jan 5, 2024
1 parent 4811924 commit f2b2268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TestSuite/errors/err0532.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//!Операции нельзя вызывать, используя данный синтаксис
begin
Writeln(string.operator*=);
end.
2 changes: 2 additions & 0 deletions TreeConverter/TreeConversion/syntax_tree_visitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9601,6 +9601,8 @@ private expression_node create_static_expression(type_node tn, SyntaxTree.ident

private void dot_node_as_type_ident(type_node tn, SyntaxTree.ident id_right, motivation mot)
{
if (id_right is SyntaxTree.operator_name_ident)
AddError(get_location(id_right), "OPERATIONS_CANNOT_BE_CALLED_USING_THIS_SYNTAX");
List<SymbolInfo> si_right = tn.find_in_type(id_right.name, context.CurrentScope);
if (si_right == null)
{
Expand Down

0 comments on commit f2b2268

Please sign in to comment.