Skip to content

Commit

Permalink
Follow typedefs in EntityTemplateBuilder.
Browse files Browse the repository at this point in the history
  • Loading branch information
player-03 committed Aug 27, 2023
1 parent e2fadee commit 3eaa625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/echoes/macro/EntityTemplateBuilder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class EntityTemplateBuilder {
var parents:Array<{ complexType:ComplexType, abstractType:AbstractType }> = [];
var nextParent:Type = type.type;
for(_ in 0...100) {
switch(nextParent) {
switch(nextParent.follow()) {
case TInst(_.get().kind => KAbstractImpl(_.get() => parentAbstract), _),
TAbstract(_.get() => parentAbstract, _):
parents.push({
Expand Down

0 comments on commit 3eaa625

Please sign in to comment.