mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:40:07 +00:00
842c0981b2
Change-Id: Ia654e827d7758d44ece6e52f4d8a15aae4f90e97 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365122 Commit-Queue: Mark Zhou <markzipan@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com>
24 lines
626 B
Dart
24 lines
626 B
Dart
// Copyright (c) 2024, 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.
|
|
|
|
import 'package:expect/expect.dart';
|
|
import 'package:reload_test/reload_test_utils.dart';
|
|
|
|
// Adapted from:
|
|
// https://github.com/dart-lang/sdk/blob/36c0788137d55c6c77f4b9a8be12e557bc764b1c/runtime/vm/isolate_reload_test.cc#L449
|
|
|
|
var value1 = 10;
|
|
|
|
validate() {
|
|
return '$value1';
|
|
}
|
|
|
|
Future<void> main() async {
|
|
Expect.equals('10', validate());
|
|
|
|
await hotReload();
|
|
|
|
Expect.equals('1020', validate());
|
|
}
|