table: TypeCategory; freetype: remove C code; [typedef] C structs;

Objective-C interfaces
This commit is contained in:
Alexander Medvednikov 2019-08-20 14:34:29 +03:00
parent c8da79d785
commit eb5fcafa77
8 changed files with 247 additions and 213 deletions

View file

@ -140,7 +140,7 @@ fn (p mut Parser) fn_decl() {
}
receiver_typ = p.get_type()
T := p.table.find_type(receiver_typ)
if T.is_interface {
if T.cat == .interface_ {
p.error('invalid receiver type `$receiver_typ` (`$receiver_typ` is an interface)')
}
// Don't allow modifying types from a different module