mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix issue with resolved try-unwrap in defer.
This commit is contained in:
10
test/test_suite/defer/defer_try_catch.c3t
Normal file
10
test/test_suite/defer/defer_try_catch.c3t
Normal file
@@ -0,0 +1,10 @@
|
||||
// Check that this work.
|
||||
import std::net;
|
||||
|
||||
fn void main() {
|
||||
Socket s;
|
||||
defer {
|
||||
char[1024] buf;
|
||||
while (try s.read(&buf));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user