Changeset 1765
- Timestamp:
- 11/15/08 19:44:42 (8 weeks ago)
- Location:
- cobra/trunk
- Files:
-
- 2 modified
-
Source/Expr.cobra (modified) (1 diff)
-
Tests/120-classes/304-construct-base-no-parens.cobra (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r1764 r1765 499 499 # TODO: 500 500 # if .definition inherits BoxMember and .definition.isMethod and not dotNode.isImplicit 501 if (.definition inherits Method or .definition inherits MemberOverload) and not dotNode.isImplicit501 if (.definition inherits AbstractMethod or .definition inherits MemberOverload) and not dotNode.isImplicit 502 502 .compiler.warning(this, 'Unnecessary parentheses. You can remove them.') 503 503 else -
cobra/trunk/Tests/120-classes/304-construct-base-no-parens.cobra
r1177 r1765 15 15 16 16 def init 17 base.init # <-- used to create a false error17 base.init # test base.init call with no args 18 18 _c = true 19 19 20 20 get c from var 21 22 23 class Truck 24 inherits Vehicle 25 26 def init 27 base.init() # .warning. Unnecessary parentheses 21 28 22 29
