Generic fns parsing
gkoz opened this issue · comments
Gleb Kozyrev commented
impl Struct {
/// This is func
pub fn func<T: Foo>() { }
}
Expected output:
=! file.rs
=| impl Struct§fn func
/// This is func
Actual:
=! file.rs
=| impl Struct§fn func<T
/// This is func
Affects regenerator too.
Guillaume Gomez commented
No, it's almost the expected output. I handle type parameters (incorrectly as it seems) as a precision on the object.
The problem here is that the type parameter is incomplete.
Gleb Kozyrev commented
There is no function overloading.
Guillaume Gomez commented
No, the point here was to differentiate a function if the type parameter changed between the strip and the regeneration. Certainly useless now that I think about it...