mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 14:32:49 +00:00
3fd132b658
BUG= R=sigurdm@google.com Review URL: https://codereview.chromium.org//1127043003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45560 260f80e4-7a28-3924-810f-c04153c831b5
14 lines
527 B
Dart
14 lines
527 B
Dart
// Copyright (c) 2015, 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.
|
|
|
|
// Test that calling a function, even though it itself has no effect, will
|
|
// trigger an error if the corresponding deferred library has not been loaded.
|
|
|
|
import "package:expect/expect.dart";
|
|
import "deferred_call_empty_before_load_lib.dart" deferred as lib1;
|
|
|
|
main() {
|
|
Expect.throws(() => lib1.thefun());
|
|
}
|