You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure whether this is a bug or the spec is incorrect
The very end of ch. 11.9:
If an exception is raised during execution of a catch clause, this will transfer control to the handler for the finally clause, causing the finally clause to execute in this case as well.
This issue was originally filed by rodion...@unipro.ru
Not sure whether this is a bug or the spec is incorrect
The very end of ch. 11.9:
If an exception is raised during execution of a catch clause, this will transfer control to the handler for the finally clause, causing the finally clause to execute in this case as well.
yet the following test fails at the isTrue check:
void main() {
bool flag = false;
var exStr = "foo", exInt = 2;
try {
try {
throw exStr;
} catch(String s) {
throw exInt;
} catch(int i) {
Expect.fail("This code shouldn't be executed");
} catch(var v) {
Expect.fail("This code shouldn't be executed");
} finally {
flag = true;
}
} catch (var ok) {
Expect.equals(exInt, ok);
}
Expect.isTrue(flag);
}
The text was updated successfully, but these errors were encountered: