Fix issue with resolved try-unwrap in defer.

This commit is contained in:
Christoffer Lerno
2024-11-18 15:53:05 +01:00
parent f39e339726
commit dd06dfa5ba
4 changed files with 60 additions and 0 deletions

View 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));
}
}