projects
/
profile
/
ivi
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 1.3.40
[profile/ivi/swig.git]
/
Examples
/
test-suite
/
python
/
overload_subtype_runme.py
1
from overload_subtype import *
2
3
f = Foo()
4
b = Bar()
5
6
if spam(f) != 1:
7
raise RuntimeError, "foo"
8
9
if spam(b) != 2:
10
raise RuntimeError, "bar"
11