We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b32da00 commit 0ee8043Copy full SHA for 0ee8043
src/main/kotlin/top/mcfpp/antlr/MCFPPExprVisitor.kt
@@ -317,7 +317,7 @@ class MCFPPExprVisitor(private var defaultGenericClassType : MCFPPGenericClassTy
317
if (ctx.`var`() != null) {
318
//变量
319
val qwq = visit(ctx.`var`())
320
- if(qwq is UnknownVar){
+ if(qwq is UnknownVar && ctx.parent !is mcfppParser.VarWithSelectorContext){
321
LogProcessor.error(TextTranslator.VARIABLE_NOT_DEFINED.translate(qwq.identifier))
322
}
323
return qwq
0 commit comments