From 89ec207f497b66abb2002ef19cd9d5acc9a7e226 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 5 Jan 2017 21:50:15 +0100 Subject: [PATCH] Add a failing test for an inheritanc context completion issue. --- test/completion/flow_analysis.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/completion/flow_analysis.py b/test/completion/flow_analysis.py index 0b330a3e..612f89e1 100644 --- a/test/completion/flow_analysis.py +++ b/test/completion/flow_analysis.py @@ -291,3 +291,16 @@ elif 3 == flow_import.env: #? int() str() a + +# ----------------- +# Inheritance +# ----------------- + +class Super(): + enabled = True + if enabled: + yo_dude = 4 + +class Sub(Super): + #? ['yo_dude'] + yo_dud