d2e96aa6d3
Closes #40601 Closes #41103 Closes #40946 Change-Id: I1a28f497ffe0be3d1f9e673f1e8be7a518bbfc7e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140403 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
19 lines
408 B
Dart
19 lines
408 B
Dart
// Copyright (c) 2020, 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.
|
|
|
|
abstract class A<T> {
|
|
T baz();
|
|
bar(T value) {}
|
|
foo() {
|
|
late T value;
|
|
var result = () => bar(value);
|
|
(() {
|
|
value = baz();
|
|
})();
|
|
return result;
|
|
}
|
|
}
|
|
|
|
main() {}
|