-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
main.1.dart
33 lines (27 loc) · 872 Bytes
/
main.1.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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#L364
class Foo {
final a kjsdf ksjdf;
Foo(this.a);
}
Future<void> main() async {
var foo = Foo(5);
Expect.equals(5, foo.a);
await hotReload();
throw Exception('This should never run.');
}
/** DIFF **/
/*
@@ -9,7 +9,7 @@
// https://github.com/dart-lang/sdk/blob/36c0788137d55c6c77f4b9a8be12e557bc764b1c/runtime/vm/isolate_reload_test.cc#L364
class Foo {
- final a;
+ final a kjsdf ksjdf;
Foo(this.a);
}
*/