diff python/testc3.py @ 166:da0087b82fbe

Improved type checking
author Windel Bouwman
date Fri, 22 Mar 2013 16:15:31 +0100
parents 598d3888a11c
children 0b5b2ee6b435
line wrap: on
line diff
--- a/python/testc3.py	Fri Mar 22 15:12:38 2013 +0100
+++ b/python/testc3.py	Fri Mar 22 16:15:31 2013 +0100
@@ -7,7 +7,7 @@
 var double e;
 var int f;
 
-const int A = 1337;
+const int A = 1337.;
 
 function void test1() 
 {
@@ -40,6 +40,16 @@
    return a + b;
 }
 
+function int t3(int aap, int blah)
+{
+   if (a > blah and blah < 45 + 33 or 33 > aap or 6 and true)
+   {
+      a = 2 + t2(a - 1);
+   }
+
+   return a + b;
+}
+
 var int hahaa = 23 * 2;