Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class client {
- transport t;
- async Task connect() {
- try { await t.connect(); }
- catch (TestException) {}
- }
- }
- class transport {
- async Task connect() { throw new TestException(); }
- }
- await (new client()).connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement