       codeBlock: CodeBlock()
     )
     do {
-      let result = try defaultVisitor.traverse(node)
+      let result = try defaultVisitor.traverse(node as Statement)
       XCTAssertTrue(result)
     } catch {
       XCTFail("Failed in visiting RepeatWhileStatement")

  func testVisitImportDeclaration() {
    let node = ImportDeclaration(path: [])
    do {
      let result = try defaultVisitor.traverse(node)
      XCTAssertTrue(result)
    } catch {
      XCTFail("Failed in visiting ImportDeclaration")

    let node = TypeCastingOperatorExpression(
      kind: .check(WildcardExpression(), AnyType()))
    do {
      let result = try defaultVisitor.traverse(node as Expression)
      XCTAssertTrue(result)
    } catch {
      XCTFail("Failed in visiting TypeCastingOperatorExpression")
