-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] Language tests for errors when implementing a 2.19 class that…
… implements a core library base or final class. Bug: #52078 Change-Id: If97895b9560475f11e8236de87ad5880bdee97c3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/300880 Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Kallen Tu <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/language/class_modifiers/base_transitivity/shared_library_definitions_legacy.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
// SharedOptions=--enable-experiment=class-modifiers | ||
|
||
// @dart=2.19 | ||
|
||
import 'dart:collection'; | ||
|
||
/// Legacy library which defines some classes and mixins to be used to test | ||
/// behaviors across libraries. | ||
abstract class LegacyImplementBaseCore<E extends LinkedListEntry<E>> | ||
implements LinkedList<E> {} | ||
|
||
class LegacyImplementFinalCore implements MapEntry<int, int> { | ||
int get key => 0; | ||
int get value => 1; | ||
String toString() => "Bad"; | ||
} |