Created
July 17, 2020 01:23
-
-
Save timsneath/9a8bdd927be56bc6df07e4490b33c2cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int error() { | |
try { | |
return 0; | |
} finally { | |
print('finally entered'); | |
} | |
} | |
void main() { | |
try { | |
final result = error(); | |
print('returned $result'); | |
} catch (ex) { | |
print(ex); | |
print('caught'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment