[LayaAir 2.0]2.3.0beta版本,代码有错误还能编译成功
随便写一段代码,调用一个不存在的方法图1是在2.1.1.1版本上的测试结果,编译时报错
图2是在2.3.0beta版本的测试结果,编译时不报错
还有其他情况,除非是涉及Laya的函数,其他的方法或者参数出错,编译器均不会报错
图2是在2.3.0beta版本的测试结果,编译时不报错
还有其他情况,除非是涉及Laya的函数,其他的方法或者参数出错,编译器均不会报错
没有找到相关结果
已邀请:
3 个回复
kylin9718
赞同来自:
```
typescript({
check: false, //Set to false to avoid doing any diagnostic checks on the code
tsconfigOverride:{compilerOptions:{removeComments: true}}
}),
```
改为:
typescript({
check: true, //Set to false to avoid doing any diagnostic checks on the code
tsconfigOverride:{compilerOptions:{removeComments: true}}
}),
Aar0n
赞同来自:
189*****410
赞同来自: