checker: remove an extra fn check

pull/4394/head
Alexander Medvednikov 2020-04-13 20:06:20 +02:00
parent 24958df565
commit 7aacf77262
1 changed files with 0 additions and 3 deletions

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)