don't put unreachable warning on comments
This commit is contained in:
Родитель
1b9be63ea7
Коммит
b628e3bae0
|
@ -729,7 +729,7 @@ module TDev.AST
|
|||
this.typeCheck(ss[i])
|
||||
if (unreach) {
|
||||
ss[i].isUnreachable = true
|
||||
if (!reported) {
|
||||
if (!reported && !(ss[i] instanceof Comment)) {
|
||||
reported = true
|
||||
ss[i].addHint(lf("code after return, break or continue won't ever run"))
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче