Files
sdk/pkg/front_end/testcases/nnbd/issue42459.dart
T
Johnni Winther 45173623e2 [cfe] Add test for issue 42459
Closes #42459

Change-Id: I77215b0b6dcdf4cdbfd07796c41478087607359f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155860
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-28 06:28:34 +00:00

24 lines
406 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.
test() {
(x) {
if (x) {
return 1;
} else {
return;
}
};
void local(x) {
if (x) {
return print('');
} else {
return;
}
}
}
main() {}