blob: 95c0e7d2b4d7cac5c810ecfefbea8efa460efed2 [file] [log] [blame]
// 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.
void method1() {
var local;
try {
local = 0;
return;
} finally {
print(/*unassigned*/ local);
}
local;
}
void method2() {
var local;
try {
local = 0;
return;
} catch (e) {
local = 42;
rethrow;
} finally {
print(/*unassigned*/ local);
}
local;
}
void method3() {
var local;
try {
local = 0;
} catch (e) {
local = 42;
rethrow;
} finally {
print(/*unassigned*/ local);
}
local;
}
void method4() {
var local;
try {
print(/*unassigned*/ local);
} catch (e) {
local = 42;
rethrow;
} finally {
local = 0;
}
local;
}