AeroEng43 / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

Illegal class member redefinition needs error message #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The attached program initializes a member to 0, and then later redefines
the member to a class instance.  This is not allowed within the shedskin model.
However, it should give an error message rather than crashing.

Running shedskin gives this output:

Traceback (most recent call last):
  File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
6815, in <module>
    main()
  File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
6811, in main
    analysis(name)
  File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
6534, in analysis
    analyze_virtuals()
  File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
5444, in analyze_virtuals
    if [cl for cl in concrete_cl.ancestors_upto(abstract_cl) if ident in
cl.funcs and not cl.funcs[ident].inherited]:
  File "/home/user/software/python/shedskin/shedskin-0.0.26-1/ss.py", line
108, in ancestors_upto
    a = a.bases[0] 
IndexError: list index out of range

Original issue reported on code.google.com by markdew...@gmail.com on 23 Jan 2008 at 5:40

Attachments:

GoogleCodeExporter commented 8 years ago
hi mark,

thanks for reporting. this problem has already been fixed already in SVN.. :-) 

Original comment by mark.duf...@gmail.com on 23 Jan 2008 at 1:28