mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:16:51 +00:00
42e6cf4967
This reverts commit daf91f56b9
.
Reason for revert: Analyzer and CFE disagree
Original change's description:
> [vm] Fix some further mirror breaks with frontend NNBD checks enabled.
>
> Change-Id: I3c52dac2244c1f7eae59d85bc637cce2cbb3faa9
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139302
> Reviewed-by: Régis Crelier <regis@google.com>
> Reviewed-by: Siva Annamalai <asiva@google.com>
> Commit-Queue: Ryan Macnak <rmacnak@google.com>
TBR=rmacnak@google.com,asiva@google.com,regis@google.com
Change-Id: I2f13dac7f2d7441f8db61543261ca28f500b8adc
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139319
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
46 lines
808 B
Dart
46 lines
808 B
Dart
// Copyright (c) 2014, 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.
|
|
|
|
@A(const B())
|
|
library main;
|
|
|
|
@B()
|
|
import 'package:async_helper/async_helper.dart';
|
|
import 'package:expect/expect.dart';
|
|
|
|
import "dart:math";
|
|
|
|
import 'deferred_mirrors_metadata_lib.dart' deferred as lib1;
|
|
|
|
class A {
|
|
final B b;
|
|
const A(this.b);
|
|
String toString() => "A";
|
|
}
|
|
|
|
class B {
|
|
const B();
|
|
String toString() => "B";
|
|
}
|
|
|
|
class C {
|
|
const C();
|
|
String toString() => "C";
|
|
}
|
|
|
|
class D {
|
|
const D();
|
|
String toString() => "D";
|
|
}
|
|
|
|
void main() {
|
|
asyncStart();
|
|
lib1.loadLibrary().then((_) {
|
|
Expect.equals("ABCD", lib1.foo());
|
|
new C();
|
|
new D();
|
|
asyncEnd();
|
|
});
|
|
}
|