first version of too few params detection

This commit is contained in:
Dave Halter committed 2014-05-21 13:01:12 +02:00
1 parent 4ecc150d85
commit 9d4dc546ca
3 files changed
+19 -9

No files matched your search

+5 -2
View File
@@ -2,15 +2,18 @@ def simple(a):
return a
simple(1)
#! 6 type-error-too-few-arguments
simple()
#! 10 type-error-too-many-params
#! 10 type-error-too-many-arguments
simple(1, 2)
def nested(*args):
# TODO: shoult not be her but in line 17
#! 13 type-error-too-few-arguments
return simple(*args)
nested(1)
nested()
#! 10 type-error-too-many-params
#! 10 type-error-too-many-arguments
simple(1, 2, 3)