79e478e50e
**I fixed some links and some other minor flaws.** I also found the following outdated links, which I didn't fix: - [This link](https://github.com/dart-lang/pool/tree/zone.strong) in [this file](https://github.com/dart-lang/sdk/blob/master/docs/newsletter/20170728.md) (didn't fix because don't know new location and this is some sort of archive so the link should probably stay the original) - [This link](https://www.dartlang.org/tools/analyzer) in [this file](https://github.com/dart-lang/sdk/blob/master/pkg/analyzer_cli/lib/src/options.dart) (didn't fix since the link is still working, it just gets redirected and the link is part of the programm, I don't want to break anything by changing it, all other links are in comments) - [This link](https://github.com/domokit/mojo/issues/728) in [this file](https://github.com/dart-lang/sdk/blob/master/build/config/compiler/BUILD.gn) (didn't fix since probably has no new location and is part of TODO, which I don't want to change) While doing all this I also noticed that [these tests](https://github.com/dart-lang/sdk/tree/master/tests/compiler/dart2js_extra) contain a lot of other inconsistencies in their comments and the location of the import-statements (I only fixed one which was not link-related), could be target of another PR. Closes #36927 https://github.com/dart-lang/sdk/pull/36927 GitOrigin-RevId: 71d05d0b52d8ec5b92d077a070e066d1fdd4bbfa Change-Id: Ide4b2424fccad8ae2e06c788efd4443dc0de997b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102222 Reviewed-by: Michael Thomsen <mit@google.com> Commit-Queue: Michael Thomsen <mit@google.com>
42 lines
1.0 KiB
Dart
42 lines
1.0 KiB
Dart
// Copyright (c) 2018, 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.
|
|
|
|
// dart2jsOptions=--strong
|
|
|
|
// Regression test checking that nsm-forwarders do not get installed for private
|
|
// members of other libraries. See http://dartbug.com/33665
|
|
|
|
import 'package:expect/expect.dart';
|
|
import 'no_such_method_strong11_lib.dart';
|
|
|
|
abstract class J {
|
|
int _m3();
|
|
int _m4();
|
|
}
|
|
|
|
class A implements I, J {
|
|
int _m1() => 1;
|
|
int _m3() => 3;
|
|
noSuchMethod(Invocation m) => -1;
|
|
}
|
|
|
|
main() {
|
|
dynamic a = confuse(new A());
|
|
Expect.equals(1, a._m1());
|
|
Expect.equals(3, a._m3());
|
|
Expect.equals(1, (a._m1)());
|
|
Expect.equals(3, (a._m3)());
|
|
|
|
Expect.equals(-1, a._m2());
|
|
Expect.equals(-1, a._m4());
|
|
Expect.isFalse(a._m2 is Function);
|
|
Expect.equals(-1, a._m2);
|
|
Expect.isTrue(a._m4 is Function);
|
|
Expect.equals(-1, (a._m4)());
|
|
}
|
|
|
|
@pragma('dart2js:noInline')
|
|
@pragma('dart2js:assumeDynamic')
|
|
confuse(x) => x;
|