parser: `Visitor::visit` does not accepts `null`
[nit.git] / src / test_parser.nit
index f19857d..78f5799 100644 (file)
@@ -22,9 +22,8 @@ import parser
 class PrintTreeVisitor
        super Visitor
        var _rank: Int
-       redef fun visit(n: nullable ANode)
+       redef fun visit(n)
        do
-               if n == null then return
                if n isa Token then
                        printn("  " * _rank, n.to_s, " ... ", n.location, "\n")
                else