better handling of using directives
This commit is contained in:
parent
d2d2bfa05f
commit
63452e9fc1
6 changed files with 100 additions and 3 deletions
10
Examples/test-suite/python/using_member_runme.py
Normal file
10
Examples/test-suite/python/using_member_runme.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue