1
0
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:
Alexander Medvednikov 2020-04-13 20:06:20 +02:00
parent 24958df565
commit 7aacf77262

View File

@ -890,9 +890,6 @@ fn (c mut Checker) stmt(node ast.Stmt) {
// 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.fn_return_type = it.return_type
c.stmts(it.stmts)