Skip to content

[CP] Avoid CFE crash when input contains invalid super parameters usage #50052

Description

@mraleph

Commit(s) to merge

bbdb9e4

Target

stable

Issue Description

CFE crashes when input contains incorrect usage of super parameters feature instead of reporting a syntax error.

What is the fix

Fix global type inference to propertly handle situations where incorrect super parameters are involved.

Why cherry-pick

Users get an uninformative CFE crash with a stack trace instead of a readable syntax error and can't really figure out what is wrong with their code on their own.

Risk

low

Issue link(s)

#49641
flutter/flutter#111833
#47470 (comment)

Extra Info

No response

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions