-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
cfe-dysfunctionalitiesIssues for the CFE not behaving as intendedIssues for the CFE not behaving as intendedfeature-patternsImplementation of the patterns featureImplementation of the patterns featurelegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Hello!
It appears that currently, when we write:
class Generic<T> {
final T value;
}
...
switch (Generic<int>()) {
case Generic(:final value?):
}
then value
is inferred as "dynamic". But in this context, T is guaranteed to be at least int
Would it be possible to consider case Generic(<...>)
as case Generic<int>(<...>)
?
samandmoore, timokz, HosamHasanRamadan, GP4cK, victorem1 and 4 more
Metadata
Metadata
Assignees
Labels
cfe-dysfunctionalitiesIssues for the CFE not behaving as intendedIssues for the CFE not behaving as intendedfeature-patternsImplementation of the patterns featureImplementation of the patterns featurelegacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)