cgen: fix building with `-no-preludes -no-builtin` (part 1)

pull/12853/head
Delyan Angelov 2021-12-15 12:47:28 +02:00
parent 1d41d9daf9
commit fa1a7a85f0
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 0 deletions

View File

@ -7203,6 +7203,11 @@ fn (mut g Gen) interface_table() string {
if isym.kind != .interface_ {
continue
}
if isym.info !is ast.Interface {
// Do not remove this check, `isym.info` could be `&IError`.
// dump(isym)
continue
}
inter_info := isym.info as ast.Interface
if inter_info.is_generic {
continue