Changeset 1758
- Timestamp:
- 11/10/08 04:47:48 (2 months ago)
- Location:
- cobra/trunk
- Files:
-
- 2 added
- 2 modified
- 1 moved
-
Source/Members.cobra (modified) (2 diffs)
-
Tests/120-classes/750-underscore-single.cobra (modified) (1 diff)
-
Tests/120-classes/752-underscore-single-errors.cobra (added)
-
Tests/120-classes/754-underscore-double.cobra (added)
-
Tests/120-classes/756-underscore-double-errors.cobra (moved) (moved from cobra/trunk/Tests/120-classes/752-underscore-double.cobra)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Members.cobra
r1752 r1758 903 903 904 904 get shouldBeVirtual as bool is override 905 return .isClassMember and not _implementsTypeNode and not _implementsType905 return .isClassMember and not .isPrivate and not _implementsTypeNode and not _implementsType 906 906 907 907 def addRefFields is override … … 1120 1120 1121 1121 get shouldBeVirtual as bool is override 1122 return .isClassMember # TODO: and not _implementsTypeNode and not _implementsType1122 return .isClassMember and not .isPrivate # TODO: and not _implementsTypeNode and not _implementsType 1123 1123 1124 1124 def mergedIntoPartialBox(newBox as Box) -
cobra/trunk/Tests/120-classes/750-underscore-single.cobra
r1611 r1758 43 43 44 44 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()
