[Swift-commit] r7000 - branches/release-0.94/src/org/griphyn/vdl/engine

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Mon Aug 26 02:20:56 CDT 2013


Author: hategan
Date: 2013-08-26 02:20:56 -0500 (Mon, 26 Aug 2013)
New Revision: 7000

Modified:
   branches/release-0.94/src/org/griphyn/vdl/engine/Karajan.java
Log:
also infer call return type when call is a parameter to a function

Modified: branches/release-0.94/src/org/griphyn/vdl/engine/Karajan.java
===================================================================
--- branches/release-0.94/src/org/griphyn/vdl/engine/Karajan.java	2013-08-26 07:08:46 UTC (rev 6999)
+++ branches/release-0.94/src/org/griphyn/vdl/engine/Karajan.java	2013-08-26 07:20:56 UTC (rev 7000)
@@ -1218,7 +1218,8 @@
 					arguments.length + " and should be " + funcSignature.sizeOfInputArray());
 
 		for(int i = 0; i < arguments.length; i++ ) {
-			StringTemplate exprST = expressionToKarajan(arguments[i], scope);
+		    String type = funcSignature.getInputArray(i).getType();
+			StringTemplate exprST = expressionToKarajan(arguments[i], scope, false, type);
 			funcST.setAttribute("args", exprST);
 
 			/* Type check of function arguments */




More information about the Swift-commit mailing list