Changeset 1758

Show
Ignore:
Timestamp:
11/10/08 04:47:48 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Fix bug in ticket:61
def foo causes false compilation error.

Location:
cobra/trunk
Files:
2 added
2 modified
1 moved

Legend:

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

    r1752 r1758  
    903903 
    904904        get shouldBeVirtual as bool is override 
    905                 return .isClassMember and not _implementsTypeNode and not _implementsType 
     905                return .isClassMember and not .isPrivate and not _implementsTypeNode and not _implementsType 
    906906 
    907907        def addRefFields is override 
     
    11201120 
    11211121        get shouldBeVirtual as bool is override 
    1122                 return .isClassMember # TODO: and not _implementsTypeNode and not _implementsType 
     1122                return .isClassMember and not .isPrivate  # TODO: and not _implementsTypeNode and not _implementsType 
    11231123 
    11241124        def mergedIntoPartialBox(newBox as Box) 
  • cobra/trunk/Tests/120-classes/750-underscore-single.cobra

    r1611 r1758  
    4343 
    4444        def main is shared 
    45                 x = X() 
    46                 print x._a  # .error. cannot access 
    47                 print x._b  # .error. cannot access 
    48                 x._c = 5  # .error. cannot access 
    49                 print x._d  # .error. cannot access 
    50                 x._d = 5  # .error. cannot access 
    51                 x._e  # .error. cannot access 
     45                X()