The bug was present in older Vala versions. Reintroducing it to avoid
breaking old code, until a proper fix is found.
See bug 666480.
if (type.type_parameter != null) {
var parent = type.type_parameter.parent_symbol;
var cl = parent as Class;
- if ((!(parent is Method) && !(parent is ObjectTypeSymbol)) || (cl != null && cl.is_compact)) {
+ if ((!(parent is Method) && !(parent is ObjectTypeSymbol)) || (cl != null && cl.is_compact) || parent is Interface) {
return new CCodeConstant ("NULL");
}