Skip to content
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

Fixes #2857. Fix names conflict in scope_A02_t03_part2.dart #2862

Merged
merged 1 commit into from
Sep 11, 2024
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
6 changes: 3 additions & 3 deletions LanguageFeatures/Parts-with-imports/scope_A02_t03_part2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
part of 'scope_A02_t03_part1.dart';

import 'scope_lib1.dart';
import 'parts_lib.dart';
import 'scope_lib5.dart';

testPart2() {
// From scope_lib1.dart
Expand All @@ -34,6 +34,6 @@ testPart2() {
Expect.equals("scope_lib1 LibET", LibET.id);
// From scope_lib2.dart
Expect.equals("scope_lib2", libId);
// From parts_lib.dart
Expect.equals(0, counter);
// From scope_lib5.dart
Expect.equals("scope_lib5 Lib5Class", Lib5Class.id);
}
14 changes: 14 additions & 0 deletions LanguageFeatures/Parts-with-imports/scope_lib5.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) 2024, 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.

/// @assertion Common library for `scope*` tests.
///
/// @description Common library for `scope*` tests.
/// @author sgrekhov22@gmail.com

// SharedOptions=--enable-experiment=enhanced-parts

class Lib5Class {
static final id = "scope_lib5 Lib5Class";
}