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

使用双斜线注释代码编译不报错,但代码运行结果不对 #483

Closed
zhengshg opened this issue Aug 1, 2022 · 2 comments
Closed
Labels

Comments

@zhengshg
Copy link

zhengshg commented Aug 1, 2022

问题:代码中注释误使用成双斜线//,但编译并没有报错,但代码不符合预期,版本:5.3.0

代码:
if( !string.startsWith(tableName, "test")){
return false;
}
//注释xxxx
return true;

测试数据:
{"tableName":"notest"}

预期:返回false,实际:返回true

@killme2008 killme2008 added the bug label Aug 25, 2022
@killme2008
Copy link
Owner

这是个 bug,感谢报告

@killme2008
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants