Show
Ignore:
Timestamp:
08/14/08 06:57:27 (5 months ago)
Author:
Chuck.Esterbrook
Message:

* Fixed: Using ref on a variable that experienced an error causes an internal exception.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Expr.cobra

    r1564 r1577  
    19221922                                if right.definition inherits AbstractMethod or right.definition inherits MemberOverload 
    19231923                                        right.isReference = true 
     1924                                else if right.definition is nil 
     1925                                        # happens from error recovery such as: obj = BadClassName() ... ref obj.foo 
     1926                                        pass 
    19241927                                else 
    19251928                                        .throwError('Only methods can be referenced, not [right.definition.englishName].')