From e2d7b563cd22b92604e07dad9bf6bcf0393a46ca Mon Sep 17 00:00:00 2001 From: bd-912 Date: Fri, 26 Apr 2024 19:36:16 -0600 Subject: HeatVisitor MessageSend anonymous, observe Factorial + others pass --- boil/BoilVisitor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boil/BoilVisitor.java') diff --git a/boil/BoilVisitor.java b/boil/BoilVisitor.java index 4ba6ea2..0d1d721 100644 --- a/boil/BoilVisitor.java +++ b/boil/BoilVisitor.java @@ -969,7 +969,7 @@ public class BoilVisitor extends GJDepthFirst { MinimalLogger.info("Message send found ANONYMOUS"); // expand the entire object out! rhs = n.f0.accept(this, argu); - t = new TypeInstance(rhs, TypeEnum.ERROR, + t = new TypeInstance(rhs, null, (MethodInstance) this.symt.getActive(TypeEnum.method), (ClassInstance) this.symt.getActive(TypeEnum.classname)); t.addClassInstance(this.recentClass); @@ -981,7 +981,7 @@ public class BoilVisitor extends GJDepthFirst { MinimalLogger.info("Message send found BRACKET"); rhs = n.f0.accept(this, argu); ClassInstance cls = this.recentMethod.getReturn(); - t = new TypeInstance(this.getUniqueID(), TypeEnum.ERROR, + t = new TypeInstance(this.getUniqueID(), null, (MethodInstance) this.symt.getActive(TypeEnum.method), (ClassInstance) this.symt.getActive(TypeEnum.classname)); this.addVapor(String.format(" %s = %s\n", -- cgit v1.2.3