first version of too few params detection

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

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)