mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Test. Support for optinal 'deferred as' to find URIs.
Change-Id: I923b65931de5d7ac56bea0b356474113ebb9a778 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/364627 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
3c9d05f255
commit
33f0388776
|
@ -14,7 +14,9 @@ final _environmentRegExp = RegExp(r"// Environment=(.*)");
|
|||
final _packagesRegExp = RegExp(r"// Packages=(.*)");
|
||||
final _experimentRegExp = RegExp(r"^--enable-experiment=([a-z0-9,-]+)$");
|
||||
final _localFileRegExp = RegExp(
|
||||
r"""^\s*(?:import(?: augment)?|part) ['"](?!package:|dart:)(.*)['"];""",
|
||||
r"""^\s*(?:import(?: augment)?|part) """
|
||||
r"""['"](?!package:|dart:)(.*)['"]"""
|
||||
r"""(?: deferred as \w+)?;""",
|
||||
multiLine: true);
|
||||
|
||||
List<String> _splitWords(String s) =>
|
||||
|
|
|
@ -7,5 +7,8 @@ class A {}
|
|||
class C extends A {
|
||||
foo() {
|
||||
super.foo = 3;
|
||||
// ^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SUPER_MEMBER
|
||||
// [cfe] Superclass has no setter named 'foo'.
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,9 +7,6 @@
|
|||
// used to cause a crash.
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
// ^^^
|
||||
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SUPER_MEMBER
|
||||
// [cfe] Superclass has no setter named 'foo'.
|
||||
import "super_dependency_lib.dart" deferred as lib;
|
||||
|
||||
main() async {
|
||||
|
|
Loading…
Reference in a new issue