Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Запретить присваивание void #55

Closed
Stepami opened this issue Feb 16, 2024 · 0 comments · Fixed by #120
Closed

[bug] Запретить присваивание void #55

Stepami opened this issue Feb 16, 2024 · 0 comments · Fixed by #120
Labels
Bug Something isn't working IR Working on intermediate representation of the interpreter
Milestone

Comments

@Stepami
Copy link
Owner

Stepami commented Feb 16, 2024

Is your feature request related to a problem? Please describe.
Рассмотрим следующий участок кода:

function func(b: boolean) {
    if (b)
        return
    return
}
let x = func(true)

Статический анализ должен завершаться с ошибкой о том, что тип void не может участвовать в присваивании

@Stepami Stepami added Feature New feature or request IR Working on intermediate representation of the interpreter Language Feature New language feature (grammar, semantics, etc.) Good First Issue Good for newcomers labels Feb 16, 2024
@Stepami Stepami added Bug Something isn't working and removed Feature New feature or request Good First Issue Good for newcomers Language Feature New language feature (grammar, semantics, etc.) labels Aug 13, 2024
@Stepami Stepami changed the title [feature request] Запретить присваивание void [bug] Запретить присваивание void Aug 13, 2024
@Stepami Stepami added this to the v2.1.0 milestone Aug 19, 2024
Stepami added a commit that referenced this issue Nov 3, 2024
Stepami added a commit that referenced this issue Nov 3, 2024
Stepami added a commit that referenced this issue Nov 3, 2024
Stepami added a commit that referenced this issue Nov 3, 2024
* #55 - test

* #55 - исправление бага

* #55 - доработка вычисления отрезка для выражения вызова

* #55 - доработка теста
Stepami added a commit that referenced this issue Feb 2, 2025
* #55 - test

* #55 - исправление бага

* #55 - доработка вычисления отрезка для выражения вызова

* #55 - доработка теста
Stepami added a commit that referenced this issue Feb 3, 2025
* #55 - test

* #55 - исправление бага

* #55 - доработка вычисления отрезка для выражения вызова

* #55 - доработка теста
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working IR Working on intermediate representation of the interpreter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant