Use latest language version in test

This commit is contained in:
Simon Binder 2024-04-05 21:26:51 +02:00
parent f297fa4768
commit d553a7f679
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 1 additions and 4 deletions

View File

@ -409,10 +409,7 @@ class _GeneratesConstDataClasses extends Matcher {
final parsed = parseFile(
path: '/foo.dart',
featureSet: FeatureSet.fromEnableFlags2(
sdkLanguageVersion: Version(2, 12, 0),
flags: const [],
),
featureSet: FeatureSet.latestLanguageVersion(),
resourceProvider: resourceProvider,
throwIfDiagnostics: true,
).unit;