mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: remove an extra fn check
This commit is contained in:
parent
24958df565
commit
7aacf77262
@ -890,9 +890,6 @@ fn (c mut Checker) stmt(node ast.Stmt) {
|
|||||||
// c.warn('duplicate method `$it.name`', it.pos)
|
// c.warn('duplicate method `$it.name`', it.pos)
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
if f := c.table.find_fn(it.name) {
|
|
||||||
c.warn('redefinition of `$it.name`', it.pos)
|
|
||||||
}
|
|
||||||
c.expected_type = table.void_type
|
c.expected_type = table.void_type
|
||||||
c.fn_return_type = it.return_type
|
c.fn_return_type = it.return_type
|
||||||
c.stmts(it.stmts)
|
c.stmts(it.stmts)
|
||||||
|
Loading…
Reference in New Issue
Block a user