mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
table: TypeCategory; freetype: remove C code; [typedef] C structs;
Objective-C interfaces
This commit is contained in:
parent
c8da79d785
commit
eb5fcafa77
8 changed files with 247 additions and 213 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue