From 18a012509f7068c8942573741dea811344da6b21 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 11 Mar 2014 12:03:19 +0100 Subject: [PATCH] tests for lambda params - #379 --- test/completion/lambdas.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/completion/lambdas.py b/test/completion/lambdas.py index 8d412756..3b1ee6ce 100644 --- a/test/completion/lambdas.py +++ b/test/completion/lambdas.py @@ -59,3 +59,15 @@ class C(): self.a = lambda: 1 #? int() C().a() + + +# ----------------- +# lambda param (#379) +# ----------------- +class Test(object): + def __init__(self, pred=lambda x, y: x): + self.a = 1 + #? int() + self.a + #? float() + pred(1.0, 2)