瀏覽代碼

Fixed this call in primitive expansions

Who would've thought that a 'this' can be a non-object :thinking-face:
kindlich 5 年之前
父節點
當前提交
d4a722cd92
沒有發現已知的金鑰在資料庫的簽署中

+ 1
- 1
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java 查看文件

@@ -4138,7 +4138,7 @@ public class JavaExpressionVisitor implements ExpressionVisitor<Void>, JavaNativ
4138 4138
 
4139 4139
 	@Override
4140 4140
 	public Void visitThis(ThisExpression expression) {
4141
-		javaWriter.loadObject(0);
4141
+		javaWriter.load(context.getType(expression.type), 0);
4142 4142
 		return null;
4143 4143
 	}
4144 4144
 

Loading…
取消
儲存