50ac2500a1
The library wasn't taken into account when handling computing class members in the K/J-model and not handled correctly when computing applicable selectors. This made dart2js unable to handle members with a name private to a different library than the enclosing library. Fixes #33732 Fixes #49226 Change-Id: I5ba143d87662bbd42e0ff02355054e4a937be8f8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/252665 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Stephen Adams <sra@google.com>
32 lines
787 B
Dart
32 lines
787 B
Dart
// Copyright (c) 2022, 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.
|
|
|
|
// Derived from lib/collection/queue_test which showed in error in the
|
|
// of private names in dart2js.
|
|
|
|
library queue.test;
|
|
|
|
import 'private_names_lib1.dart';
|
|
|
|
class DoubleLinkedQueueTest {
|
|
void testMain() {
|
|
testQueueElements();
|
|
}
|
|
|
|
void testQueueElements() {
|
|
DoubleLinkedQueue<int> queue1 = new DoubleLinkedQueue<int>.from([1, 2, 3]);
|
|
var firstEntry = queue1.firstEntry()!;
|
|
firstEntry.prepend(4);
|
|
}
|
|
}
|
|
|
|
void linkEntryTest() {
|
|
var entry = new DoubleLinkedQueueEntry(42);
|
|
}
|
|
|
|
main() {
|
|
new DoubleLinkedQueueTest().testMain();
|
|
linkEntryTest();
|
|
}
|