Fix typos in attribute2ref() in Lib/typemaps/attribute.swg
AccessorName was being used instead of AttributeName. Closes #1872.
This commit is contained in:
parent
c12ab1f012
commit
bcfa927298
3 changed files with 7 additions and 1 deletions
|
|
@ -45,6 +45,9 @@ myClass = li_attribute.MyClass()
|
|||
myClass.Foo = myFoo
|
||||
if myClass.Foo.x != 8:
|
||||
raise RuntimeError
|
||||
myClass.Foo2 = myFoo
|
||||
if myClass.Foo2.x != 8:
|
||||
raise RuntimeError
|
||||
|
||||
# class/struct attribute with get/set methods using return/pass by value
|
||||
myClassVal = li_attribute.MyClassVal()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue