{
  "type": "Program",
  "statements": [
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "c",
            "typeAnnotation": {
              "type": "TSVoidKeyword",
              "loc": {
                "start": {
                  "line": 1,
                  "column": 8
                },
                "end": {
                  "line": 1,
                  "column": 12
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 1,
                "column": 5
              },
              "end": {
                "line": 1,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 1,
              "column": 5
            },
            "end": {
              "line": 1,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 1,
          "column": 1
        },
        "end": {
          "line": 1,
          "column": 13
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "ObjectPattern",
            "properties": [
              {
                "type": "Property",
                "method": false,
                "shorthand": true,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 7
                    },
                    "end": {
                      "line": 2,
                      "column": 8
                    }
                  }
                },
                "value": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 7
                    },
                    "end": {
                      "line": 2,
                      "column": 8
                    }
                  }
                },
                "kind": "init",
                "loc": {
                  "start": {
                    "line": 2,
                    "column": 7
                  },
                  "end": {
                    "line": 2,
                    "column": 8
                  }
                }
              },
              {
                "type": "RestElement",
                "argument": {
                  "type": "Identifier",
                  "name": "b",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 13
                    },
                    "end": {
                      "line": 2,
                      "column": 14
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 2,
                    "column": 10
                  },
                  "end": {
                    "line": 2,
                    "column": 14
                  }
                }
              }
            ],
            "typeAnnotation": {
              "type": "TSUnionType",
              "types": [
                {
                  "type": "TSTypeLiteral",
                  "members": [
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "a",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 20
                          },
                          "end": {
                            "line": 2,
                            "column": 21
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 23
                          },
                          "end": {
                            "line": 2,
                            "column": 29
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 2,
                          "column": 20
                        },
                        "end": {
                          "line": 2,
                          "column": 31
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 18
                    },
                    "end": {
                      "line": 2,
                      "column": 31
                    }
                  }
                },
                {
                  "type": "TSTypeLiteral",
                  "members": [
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "a",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 36
                          },
                          "end": {
                            "line": 2,
                            "column": 37
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 39
                          },
                          "end": {
                            "line": 2,
                            "column": 45
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 2,
                          "column": 36
                        },
                        "end": {
                          "line": 2,
                          "column": 46
                        }
                      }
                    },
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "b",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 47
                          },
                          "end": {
                            "line": 2,
                            "column": 48
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSStringKeyword",
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 50
                          },
                          "end": {
                            "line": 2,
                            "column": 56
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 2,
                          "column": 47
                        },
                        "end": {
                          "line": 2,
                          "column": 57
                        }
                      }
                    },
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "c",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 58
                          },
                          "end": {
                            "line": 2,
                            "column": 59
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSTypeLiteral",
                        "members": [
                          {
                            "type": "TSPropertySignature",
                            "computed": false,
                            "optional": false,
                            "readonly": false,
                            "key": {
                              "type": "Identifier",
                              "name": "a",
                              "decorators": [],
                              "loc": {
                                "start": {
                                  "line": 2,
                                  "column": 63
                                },
                                "end": {
                                  "line": 2,
                                  "column": 64
                                }
                              }
                            },
                            "typeAnnotation": {
                              "type": "TSNumberKeyword",
                              "loc": {
                                "start": {
                                  "line": 2,
                                  "column": 66
                                },
                                "end": {
                                  "line": 2,
                                  "column": 72
                                }
                              }
                            },
                            "loc": {
                              "start": {
                                "line": 2,
                                "column": 63
                              },
                              "end": {
                                "line": 2,
                                "column": 73
                              }
                            }
                          },
                          {
                            "type": "TSPropertySignature",
                            "computed": false,
                            "optional": false,
                            "readonly": false,
                            "key": {
                              "type": "Identifier",
                              "name": "b",
                              "decorators": [],
                              "loc": {
                                "start": {
                                  "line": 2,
                                  "column": 74
                                },
                                "end": {
                                  "line": 2,
                                  "column": 75
                                }
                              }
                            },
                            "typeAnnotation": {
                              "type": "TSBooleanKeyword",
                              "loc": {
                                "start": {
                                  "line": 2,
                                  "column": 77
                                },
                                "end": {
                                  "line": 2,
                                  "column": 84
                                }
                              }
                            },
                            "loc": {
                              "start": {
                                "line": 2,
                                "column": 74
                              },
                              "end": {
                                "line": 2,
                                "column": 86
                              }
                            }
                          }
                        ],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 61
                          },
                          "end": {
                            "line": 2,
                            "column": 86
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 2,
                          "column": 58
                        },
                        "end": {
                          "line": 2,
                          "column": 88
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 34
                    },
                    "end": {
                      "line": 2,
                      "column": 88
                    }
                  }
                },
                {
                  "type": "TSTypeLiteral",
                  "members": [
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "a",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 93
                          },
                          "end": {
                            "line": 2,
                            "column": 94
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSNumberKeyword",
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 96
                          },
                          "end": {
                            "line": 2,
                            "column": 102
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 2,
                          "column": 93
                        },
                        "end": {
                          "line": 2,
                          "column": 103
                        }
                      }
                    },
                    {
                      "type": "TSPropertySignature",
                      "computed": false,
                      "optional": false,
                      "readonly": false,
                      "key": {
                        "type": "Identifier",
                        "name": "r",
                        "decorators": [],
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 104
                          },
                          "end": {
                            "line": 2,
                            "column": 105
                          }
                        }
                      },
                      "typeAnnotation": {
                        "type": "TSBooleanKeyword",
                        "loc": {
                          "start": {
                            "line": 2,
                            "column": 107
                          },
                          "end": {
                            "line": 2,
                            "column": 114
                          }
                        }
                      },
                      "loc": {
                        "start": {
                          "line": 2,
                          "column": 104
                        },
                        "end": {
                          "line": 2,
                          "column": 116
                        }
                      }
                    }
                  ],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 91
                    },
                    "end": {
                      "line": 2,
                      "column": 116
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 2,
                  "column": 18
                },
                "end": {
                  "line": 2,
                  "column": 116
                }
              }
            },
            "loc": {
              "start": {
                "line": 2,
                "column": 5
              },
              "end": {
                "line": 2,
                "column": 16
              }
            }
          },
          "init": {
            "type": "ObjectExpression",
            "properties": [
              {
                "type": "Property",
                "method": false,
                "shorthand": false,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 121
                    },
                    "end": {
                      "line": 2,
                      "column": 122
                    }
                  }
                },
                "value": {
                  "type": "NumberLiteral",
                  "value": 12,
                  "loc": {
                    "start": {
                      "line": 2,
                      "column": 124
                    },
                    "end": {
                      "line": 2,
                      "column": 126
                    }
                  }
                },
                "kind": "init",
                "loc": {
                  "start": {
                    "line": 2,
                    "column": 121
                  },
                  "end": {
                    "line": 2,
                    "column": 126
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 2,
                "column": 119
              },
              "end": {
                "line": 2,
                "column": 128
              }
            }
          },
          "loc": {
            "start": {
              "line": 2,
              "column": 5
            },
            "end": {
              "line": 2,
              "column": 128
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 2,
          "column": 1
        },
        "end": {
          "line": 2,
          "column": 129
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "AssignmentExpression",
        "operator": "=",
        "left": {
          "type": "Identifier",
          "name": "b",
          "decorators": [],
          "loc": {
            "start": {
              "line": 3,
              "column": 1
            },
            "end": {
              "line": 3,
              "column": 2
            }
          }
        },
        "right": {
          "type": "Identifier",
          "name": "c",
          "decorators": [],
          "loc": {
            "start": {
              "line": 3,
              "column": 5
            },
            "end": {
              "line": 3,
              "column": 6
            }
          }
        },
        "loc": {
          "start": {
            "line": 3,
            "column": 1
          },
          "end": {
            "line": 3,
            "column": 6
          }
        }
      },
      "loc": {
        "start": {
          "line": 3,
          "column": 1
        },
        "end": {
          "line": 3,
          "column": 7
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 3,
      "column": 7
    }
  }
}
TypeError: Type 'void' is not assignable to type '{ } | { b: string; c: { a: number; b: boolean; }; } | { r: boolean; }'. [objectDestructuring20.ts:3:1]
