From 5cca2174c23dd0e92e0ddadf950fc16d6351a675 Mon Sep 17 00:00:00 2001 From: Xun Yang <x299yang@uwaterloo.ca> Date: Thu, 5 Mar 2020 16:56:12 -0500 Subject: [PATCH] fix typo --- ExprPrimaryNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExprPrimaryNodes.py b/ExprPrimaryNodes.py index 53a04e6..7462c53 100644 --- a/ExprPrimaryNodes.py +++ b/ExprPrimaryNodes.py @@ -254,7 +254,7 @@ class ClassCreateNode(ASTNode): found = False m = getMethod(classDef.constructors, self.args) if m: - self.cons = c + self.cons = m self.myType = self.className.myType else: raise Exception("ERROR: Class {} doesn't have a constructor with given argument types.".format(classDef.name)) -- GitLab