Changeset 1606 for cobra/trunk/Source/Expr.cobra
- Timestamp:
- 08/28/08 07:55:03 (4 months ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Expr.cobra (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r1605 r1606 1266 1266 pass 1267 1267 else if _definition.isProtected 1268 if not .compiler.curBox.isDescendantOf(_definition. box)1268 if not .compiler.curBox.isDescendantOf(_definition.parentBox) 1269 1269 whoseTypeIs = if(isBoxAccess, '', ' whose type is "[left.receiverType.name]"') 1270 1270 .throwError('Cannot access protected "[_name]" in "[left.toCobraSource]"[whoseTypeIs].') 1271 1271 else if _definition.isPrivate 1272 if not .compiler.curBox is _definition. box1272 if not .compiler.curBox is _definition.parentBox 1273 1273 whoseTypeIs = if(isBoxAccess, '', ' whose type is "[left.receiverType.name]"') 1274 1274 .throwError('Cannot access private "[_name]" in "[left.toCobraSource]"[whoseTypeIs].') … … 2420 2420 2421 2421 def _bindImp is override 2422 possible = _propertyMember.parent. box.symbolForName(_name, true)2422 possible = _propertyMember.parent.parentBox.symbolForName(_name, true) 2423 2423 if possible is nil 2424 2424 .throwError('Cannot find a class variable named "[_name]".')
