Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Unified Diff: pkg/analyzer/test/src/task/strong/checker_test.dart

Issue 1577143002: associate a staticInvokeType with loadLibrary (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/strong/checker_test.dart
diff --git a/pkg/analyzer/test/src/task/strong/checker_test.dart b/pkg/analyzer/test/src/task/strong/checker_test.dart
index 46d99db78ac57da85a0d7f6e547a964c795ca233..cce6d21b5de3b358bdcfbb7783b26eb95ccc6cf0 100644
--- a/pkg/analyzer/test/src/task/strong/checker_test.dart
+++ b/pkg/analyzer/test/src/task/strong/checker_test.dart
@@ -1625,6 +1625,15 @@ void main() {
'''
});
+ testChecker('loadLibrary', {
+ '/lib1.dart': '''library lib1;''',
+ '/main.dart': r'''
+ import 'lib1.dart' deferred as lib1;
+ main() {
+ Future f = lib1.loadLibrary();
+ }'''
+ });
+
group('invalid overrides', () {
testChecker('child override', {
'/main.dart': '''
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698