Skip to content

Commit

Permalink
Fix bug if initialize without statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Apr 2, 2020
1 parent 790b674 commit 3b1bc7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Chanel/Chanel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ Chanel >> ensureSuperInitializeForMethods: methods [
select: [ :method |
method methodClass isInstanceSide
and: [ method selector = #initialize
and: [ (method ast sendNodes ifNotEmpty: [ :nodes | nodes anySatisfy: [ :node | node isSuperSend and: [ node selector = #initialize ] ] ]) not ] ] ]
and: [ method ast sendNodes
ifNotEmpty: [ :nodes | (nodes anySatisfy: [ :node | node isSuperSend and: [ node selector = #initialize ] ]) not ]
ifEmpty: [ false ] ] ] ]
thenDo: [ :method |
| ast |
ast := method ast.
Expand Down

0 comments on commit 3b1bc7a

Please sign in to comment.