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

関数を定義後に同名の変数に代入できてしまう #68

Closed
taiseiue opened this issue Aug 28, 2023 · 0 comments
Closed

関数を定義後に同名の変数に代入できてしまう #68

taiseiue opened this issue Aug 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@taiseiue
Copy link
Member

概要

関数を定義後に同名の変数に代入できてしまう

該当コード

function f(x){return x;}
var f = 2;//これはちゃんとエラー(0x03e)
f = 2;//これは通ってしまう
print(f);//出力:2
@taiseiue taiseiue added the bug Something isn't working label Aug 28, 2023
@taiseiue taiseiue mentioned this issue Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant