Open Cergoo opened 2 months ago
A simple reproducible example:
fn closure<T>(input T) fn () []T {
return fn [input] <T>() []T {
return [input, input]
}
}
fn main() {
f := closure(123)
println(f())
}
It's related to @yuyi98's fix https://github.com/vlang/v/pull/15529
Describe the bug
Reproduction Steps
v test parselona_test.v
Expected Behavior
complit test
Current Behavior
Possible Solution
for some reason type parametr not expansion
Additional Information/Context
No response
V version
V 0.4.7 3ca5bc3
Environment details (OS name and version, etc.)
Linux Mint 22