Skip to content

#1581. Remove use of Deprecated.expires #1585

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

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions LibTest/core/Deprecated/Deprecated_A01_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

// @dart = 2.9

/// @assertion const Deprecated(String expires)
/// Create a deprecation annotation which specifies the expiration of the
/// annotated feature.
/// @assertion const Deprecated(String message)
/// Create a deprecation annotation which specifies the migration path and
/// expiration of the annotated feature.
/// @description Checks that this constructor can be called and returns instance
/// of Deprecated with correct expires value
/// of Deprecated with the correct message value
/// @author [email protected]

import "../../../Utils/expect.dart";
Expand Down
1 change: 0 additions & 1 deletion LibTest/mirrors/before_library_lib1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

// @dart = 2.9


@Deprecated('before_library_lib1')
library before_library_lib1;
4 changes: 1 addition & 3 deletions LibTest/mirrors/before_library_t01.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@

import 'dart:mirrors';
import '../../Utils/expect.dart';

import 'before_library_lib1.dart';


main() {
Symbol libraryName = MirrorSystem.getSymbol('before_library_lib1');
var metadata = currentMirrorSystem().findLibrary(libraryName).metadata;
Expect.equals('before_library_lib1', metadata[0].reflectee.expires);
Expect.equals('before_library_lib1', metadata[0].reflectee.message);
}