mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix building with -no-preludes -no-builtin -skip-unused
(part 2)
This commit is contained in:
@ -260,6 +260,10 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []&ast.F
|
|||||||
if isym.kind != .interface_ {
|
if isym.kind != .interface_ {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if isym.info !is ast.Interface {
|
||||||
|
// Do not remove this check, isym.info could be &IError.
|
||||||
|
continue
|
||||||
|
}
|
||||||
interface_info := isym.info as ast.Interface
|
interface_info := isym.info as ast.Interface
|
||||||
if interface_info.methods.len == 0 {
|
if interface_info.methods.len == 0 {
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user