Skip to content

Commit

Permalink
Выдача ошибки на явный импорт встроенной функции (#33)
Browse files Browse the repository at this point in the history
Теперь код типа

    $EXTERN …, Prout, …;

приводит к ошибке в компиляторе Рефала-05.

Согласно Mazdaywik/refal-5-framework#9 здесь должно быть предупреждение.
  • Loading branch information
Mazdaywik committed Oct 2, 2022
1 parent e821f15 commit 4f84a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions autotests/redudand-externs5.BAD-SYNTAX.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$EXTERN Prout;
$ENTRY Go { = <Prout 'Hello!'> }
3 changes: 0 additions & 3 deletions src/R05-Parser.ref
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,7 @@ $ENTRY r05-parser_FindRedefinitions-Item {
)
(Function t.NewPos (e.Name) s.NewScope e.NewBody)
= (
t.ErrorList
/*
<AddRedudand t.ErrorList t.NewPos s.NewScope e.Name>
*/
e.Items-B
(Function NO-POS (e.Name) Extern /* пусто */)
e.Items-E
Expand Down

0 comments on commit 4f84a73

Please sign in to comment.