This website requires JavaScript.
Explore
Help
Sign In
cli
/
q
Code
Issues
Pull Requests
Activity
17 lines
115 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fixed variable lifetime in loops
2024-07-16 18:22:28 +00:00
main() {
n := 10
x := 1
loop {
if n == 0 {
return
}
f(x)
n -= 1
}
}
Added types
2024-08-05 16:47:24 +00:00
f(x Int) -> Int {
Fixed variable lifetime in loops
2024-07-16 18:22:28 +00:00
return x
}
Reference in New Issue
Copy Permalink