SIGABRT on generic struct with string
public struct Pair<T,G> {
T v0;
G v1;
Pair (T v0, G v1) {
this.v0 = v0; this.v1 = v1;
}
Pair.empty () {}
public T first () {
return v0;
}
public G second () {
return v1;
}
}
public static int main(string[] args) {
var b = new Pair<int,string>(4,"test");
string s = b.second();
return 0;
}
got free(): invalid pointer fish: './template_struct' terminated by signal SIGABRT (Abort)
I think the problem is with string because if write int i = b.first();
then everything works fine.
Vala 0.44.5