first version of too many arguments detection

This commit is contained in:
Dave Halter committed 2014-05-21 12:30:51 +02:00
1 parent a252d825f2
commit 4ecc150d85
3 files changed
+28

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
def simple(a):
return a
simple(1)
simple()
#! 10 type-error-too-many-params
simple(1, 2)
def nested(*args):
return simple(*args)
nested(1)
nested()
#! 10 type-error-too-many-params
simple(1, 2, 3)