3ffde1e5ed
Closes #56138 Change-Id: I0bb24b0de3178e3a565b300cb7b9e1dee6c21e80 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396803 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
14 lines
350 B
Dart
14 lines
350 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.
|
|
|
|
void main() {
|
|
try {
|
|
var {42: b} = throw {42: 42};
|
|
} catch (e) {
|
|
print(e);
|
|
return;
|
|
}
|
|
throw 'Missing exception';
|
|
}
|