Custom vapi functions are not emitted in generated code if used as ref_function for a type.
As explained in #1463 this is currently failing in Vala, and the test case is current sdl2 vapi. When compiling
void main(){
var pa = new SDL.Video.Palette (42);
var pb = pa;
}
This should succeed at linking, but it fails because the custom up() function is not generated, just a wrapper around it.
Edited by Mario Daniel Ruiz Saavedra