
class Class {
}

void out_class(out Class? c) {
    if (c != null)
        c = new Class();
}

void main() {
    Class c;
    debug("non-null attempt");
    out_class(out c);
    
    debug("null attempt");
    out_class(null);
}
