70730ad62f
Change-Id: Id627378c289708c8bf7fe551ad9b6c512aafe226 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213501 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
27 lines
508 B
Dart
27 lines
508 B
Dart
// Copyright (c) 2021, 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.
|
|
|
|
class _Closure1 {
|
|
_Closure1 get call => this;
|
|
}
|
|
|
|
class _Closure2 {
|
|
final _Closure2 call;
|
|
|
|
_Closure2(this.call);
|
|
}
|
|
|
|
test(_Closure1 foo, _Closure2 bar) {
|
|
foo();
|
|
bar();
|
|
}
|
|
|
|
late _Closure1 closure1;
|
|
late _Closure2 closure2;
|
|
|
|
var field1 = closure1();
|
|
var field2 = closure2();
|
|
|
|
main() {}
|