Branch: Tag:

2021-12-02

2021-12-02 09:56:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [Typechecker]: Fix some issues with find_lfun_type().

find_lfun_type() now returns NULL for object types known not
to have the lfun.

Fixes a string leak.

3798:    add_ref(ret);    return ret;    } -  ref_push_string(lfun_strings[lfun]); +    #if 0 -  +  ref_push_string(lfun_strings[lfun]);    yytype_report(REPORT_WARNING, NULL, 0, NULL,    NULL, 0, t,    1, "Expected object implementing lfun::%s().");   #endif -  +  return NULL;    }    break;    }