Files
sdk/runtime/observatory_2/tests/service_2/deferred_library.dart
T
Ryan Macnak 6c31582031 Copy Dart 2 version of Observatory and service tests.
Change-Id: If47aa98918b0166dba781a0008c23b991d46fe1c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/165420
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2020-10-07 22:20:25 +00:00

19 lines
423 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.
library deferred_library;
int value = 0;
int decValue(int amount) {
value -= amount;
return amount;
}
void deferredTest() {
decValue(decValue(1)); // line 15
decValue(decValue(1)); // line 17
}