projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
python
/
li_implicit_runme.py
1
from li_implicit import *
2
b = B()
3
ai = A(1)
4
ad = A(2.0)
5
ab = A(b)
6
7
ai, get(ai)
8
ad, get(ad)
9
ab, get(ab)
10
11
if get(ai) != get(1):
12
raise RuntimeError,"bad implicit type"
13
if get(ad) != get(2.0):
14
raise RuntimeError,"bad implicit type"
15
if get(ab) != get(b):
16
raise RuntimeError,"bad implicit type"
17