diff python/c3/typecheck.py @ 168:49f1ab80d040

Added awesome icons
author Windel Bouwman
date Fri, 22 Mar 2013 19:09:38 +0100
parents 0b5b2ee6b435
children 4348da5ca307
line wrap: on
line diff
--- a/python/c3/typecheck.py	Fri Mar 22 17:40:13 2013 +0100
+++ b/python/c3/typecheck.py	Fri Mar 22 19:09:38 2013 +0100
@@ -87,7 +87,7 @@
          if not equalTypes(sym.typ, sym.value.typ):
             self.diag.error('Cannot assign {0} to {1}'.format(sym.value.typ, sym.typ), sym.loc)
          
-      elif type(sym) in [EmptyStatement, CompoundStatement, Package, Function]:
+      elif type(sym) in [EmptyStatement, CompoundStatement, Package, Function, FunctionType]:
          pass
       else:
          print('Unknown type check', sym)