better handling of using directives

This commit is contained in:
Frank Schlimbach 2019-02-26 07:27:12 -06:00 committed by Olly Betts
commit 63452e9fc1
6 changed files with 100 additions and 3 deletions

View file

@ -0,0 +1,10 @@
from using_member import *
b = B()
assert b.get(int(1)) == 10
assert b.get(float(1)) == 20
bb = BB()
assert bb.greater(int(1)) == 0
assert bb.greater(float(1)) == 1
assert bb.great(True) == 2