Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert error for aliased constructors in annotations #55755

Open
johnniwinther opened this issue May 17, 2024 · 0 comments
Open

Assert error for aliased constructors in annotations #55755

johnniwinther opened this issue May 17, 2024 · 0 comments
Assignees
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. cfe-dysfunctionalities Issues for the CFE not behaving as intended

Comments

@johnniwinther
Copy link
Member

These annotations

class Class {
  const Class([a]);
  const Class.named({a, b});
}

class GenericClass<X, Y> {
  const GenericClass();
  const GenericClass.named({a, b});
}

typedef Alias = Class;
typedef ComplexAlias<X> = Class;
typedef GenericAlias<X, Y> = GenericClass<X, Y>;

@Class(Alias.named())
@Class(ComplexAlias())
@Class(ComplexAlias.named())
@Class(GenericAlias())
@Class(GenericAlias.named())
void type() {}

cause assertion errors like
'package:front_end/src/fasta/kernel/body_builder.dart': Failed assertion: line 1100 pos 11: 'delayedActionPerformers != null': Body builder has delayed actions that cannot be performed: [TypeAliasedConstructorInvocation(const Alias.named())]

@johnniwinther johnniwinther added area-front-end Use area-front-end for front end / CFE / kernel format related issues. cfe-dysfunctionalities Issues for the CFE not behaving as intended labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-front-end Use area-front-end for front end / CFE / kernel format related issues. cfe-dysfunctionalities Issues for the CFE not behaving as intended
Projects
None yet
Development

No branches or pull requests

2 participants