如果其格式不符合某些规则,如何使代码不可编译?
例如(C#语言):
if (a < b)
{
// <-- build error with message "empty line"
k = j + h;
}
要么
public void Method(int a, int name) // <-- build error with message "parameter name 'a' is too short"
{
//...
}
最佳答案
关于formatting - 如果其格式不符合某些规则,如何使您的代码不可编译?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10961159/