Skip to content

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

@zhengshg

Description

@zhengshg

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

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions