3e44898e08
TEST=existing Change-Id: I72583e500cb0b69d9352b040c3e2885f9e0450c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/195681 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
|
|
import "org-dartlang-testcase:///ambiguous_main_export_lib0.dart";
|
|
|
|
static method main() → dynamic {}
|
|
|
|
library /*isNonNullableByDefault*/;
|
|
//
|
|
// Problems in library:
|
|
//
|
|
// pkg/front_end/testcases/nnbd/ambiguous_main_export_lib0.dart:6:1: Error: 'main' is exported from both 'pkg/front_end/testcases/nnbd/ambiguous_main_export_lib1.dart' and 'pkg/front_end/testcases/nnbd/ambiguous_main_export_lib2.dart'.
|
|
// export 'ambiguous_main_export_lib2.dart';
|
|
// ^
|
|
//
|
|
import self as self2;
|
|
import "dart:core" as core;
|
|
|
|
export "org-dartlang-testcase:///ambiguous_main_export_lib1.dart";
|
|
export "org-dartlang-testcase:///ambiguous_main_export_lib2.dart";
|
|
|
|
static const field dynamic _exports# = #C1 /*isLegacy*/;
|
|
|
|
library /*isNonNullableByDefault*/;
|
|
import self as self3;
|
|
import "dart:core" as core;
|
|
|
|
static method main() → dynamic {
|
|
core::print(42);
|
|
}
|
|
|
|
library /*isNonNullableByDefault*/;
|
|
import self as self4;
|
|
import "dart:core" as core;
|
|
|
|
static method main() → dynamic {
|
|
core::print(87);
|
|
}
|
|
|
|
constants {
|
|
#C1 = "{\"main\":\"'main' is exported from both 'pkg/front_end/testcases/nnbd/ambiguous_main_export_lib1.dart' and 'pkg/front_end/testcases/nnbd/ambiguous_main_export_lib2.dart'.\"}"
|
|
}
|