{
  "type": "Program",
  "statements": [
    {
      "type": "TSInterfaceDeclaration",
      "body": {
        "type": "TSInterfaceBody",
        "body": [
          {
            "type": "TSPropertySignature",
            "computed": false,
            "optional": false,
            "readonly": false,
            "key": {
              "type": "Identifier",
              "name": "a",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 2,
                  "column": 5
                },
                "end": {
                  "line": 2,
                  "column": 6
                }
              }
            },
            "typeAnnotation": {
              "type": "TSNumberKeyword",
              "loc": {
                "start": {
                  "line": 2,
                  "column": 8
                },
                "end": {
                  "line": 2,
                  "column": 14
                }
              }
            },
            "loc": {
              "start": {
                "line": 2,
                "column": 5
              },
              "end": {
                "line": 3,
                "column": 2
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 1,
            "column": 13
          },
          "end": {
            "line": 3,
            "column": 2
          }
        }
      },
      "id": {
        "type": "Identifier",
        "name": "A",
        "decorators": [],
        "loc": {
          "start": {
            "line": 1,
            "column": 11
          },
          "end": {
            "line": 1,
            "column": 12
          }
        }
      },
      "extends": [],
      "loc": {
        "start": {
          "line": 1,
          "column": 1
        },
        "end": {
          "line": 3,
          "column": 2
        }
      }
    },
    {
      "type": "TSInterfaceDeclaration",
      "body": {
        "type": "TSInterfaceBody",
        "body": [
          {
            "type": "TSPropertySignature",
            "computed": false,
            "optional": false,
            "readonly": false,
            "key": {
              "type": "Identifier",
              "name": "b",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 6,
                  "column": 5
                },
                "end": {
                  "line": 6,
                  "column": 6
                }
              }
            },
            "typeAnnotation": {
              "type": "TSNumberKeyword",
              "loc": {
                "start": {
                  "line": 6,
                  "column": 8
                },
                "end": {
                  "line": 6,
                  "column": 14
                }
              }
            },
            "loc": {
              "start": {
                "line": 6,
                "column": 5
              },
              "end": {
                "line": 6,
                "column": 15
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 5,
            "column": 23
          },
          "end": {
            "line": 7,
            "column": 2
          }
        }
      },
      "id": {
        "type": "Identifier",
        "name": "B",
        "decorators": [],
        "loc": {
          "start": {
            "line": 5,
            "column": 11
          },
          "end": {
            "line": 5,
            "column": 12
          }
        }
      },
      "extends": [
        {
          "type": "TSInterfaceHeritage",
          "expression": {
            "type": "Identifier",
            "name": "A",
            "decorators": [],
            "loc": {
              "start": {
                "line": 5,
                "column": 21
              },
              "end": {
                "line": 5,
                "column": 22
              }
            }
          },
          "loc": {
            "start": {
              "line": 5,
              "column": 23
            },
            "end": {
              "line": 5,
              "column": 22
            }
          }
        }
      ],
      "loc": {
        "start": {
          "line": 5,
          "column": 1
        },
        "end": {
          "line": 7,
          "column": 2
        }
      }
    },
    {
      "type": "TSInterfaceDeclaration",
      "body": {
        "type": "TSInterfaceBody",
        "body": [
          {
            "type": "TSPropertySignature",
            "computed": false,
            "optional": false,
            "readonly": false,
            "key": {
              "type": "Identifier",
              "name": "c",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 10,
                  "column": 5
                },
                "end": {
                  "line": 10,
                  "column": 6
                }
              }
            },
            "typeAnnotation": {
              "type": "TSStringKeyword",
              "loc": {
                "start": {
                  "line": 10,
                  "column": 8
                },
                "end": {
                  "line": 10,
                  "column": 14
                }
              }
            },
            "loc": {
              "start": {
                "line": 10,
                "column": 5
              },
              "end": {
                "line": 11,
                "column": 2
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 9,
            "column": 23
          },
          "end": {
            "line": 11,
            "column": 2
          }
        }
      },
      "id": {
        "type": "Identifier",
        "name": "C",
        "decorators": [],
        "loc": {
          "start": {
            "line": 9,
            "column": 11
          },
          "end": {
            "line": 9,
            "column": 12
          }
        }
      },
      "extends": [
        {
          "type": "TSInterfaceHeritage",
          "expression": {
            "type": "Identifier",
            "name": "A",
            "decorators": [],
            "loc": {
              "start": {
                "line": 9,
                "column": 21
              },
              "end": {
                "line": 9,
                "column": 22
              }
            }
          },
          "loc": {
            "start": {
              "line": 9,
              "column": 23
            },
            "end": {
              "line": 9,
              "column": 22
            }
          }
        }
      ],
      "loc": {
        "start": {
          "line": 9,
          "column": 1
        },
        "end": {
          "line": 11,
          "column": 2
        }
      }
    },
    {
      "type": "TSInterfaceDeclaration",
      "body": {
        "type": "TSInterfaceBody",
        "body": [
          {
            "type": "TSPropertySignature",
            "computed": false,
            "optional": false,
            "readonly": false,
            "key": {
              "type": "Identifier",
              "name": "d",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 14,
                  "column": 5
                },
                "end": {
                  "line": 14,
                  "column": 6
                }
              }
            },
            "typeAnnotation": {
              "type": "TSTupleType",
              "elementTypes": [
                {
                  "type": "TSNumberKeyword",
                  "loc": {
                    "start": {
                      "line": 14,
                      "column": 9
                    },
                    "end": {
                      "line": 14,
                      "column": 16
                    }
                  }
                },
                {
                  "type": "TSNumberKeyword",
                  "loc": {
                    "start": {
                      "line": 14,
                      "column": 17
                    },
                    "end": {
                      "line": 14,
                      "column": 24
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 14,
                  "column": 8
                },
                "end": {
                  "line": 14,
                  "column": 24
                }
              }
            },
            "loc": {
              "start": {
                "line": 14,
                "column": 5
              },
              "end": {
                "line": 14,
                "column": 25
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 13,
            "column": 26
          },
          "end": {
            "line": 15,
            "column": 2
          }
        }
      },
      "id": {
        "type": "Identifier",
        "name": "D",
        "decorators": [],
        "loc": {
          "start": {
            "line": 13,
            "column": 11
          },
          "end": {
            "line": 13,
            "column": 12
          }
        }
      },
      "extends": [
        {
          "type": "TSInterfaceHeritage",
          "expression": {
            "type": "Identifier",
            "name": "B",
            "decorators": [],
            "loc": {
              "start": {
                "line": 13,
                "column": 21
              },
              "end": {
                "line": 13,
                "column": 22
              }
            }
          },
          "loc": {
            "start": {
              "line": 13,
              "column": 22
            },
            "end": {
              "line": 13,
              "column": 22
            }
          }
        },
        {
          "type": "TSInterfaceHeritage",
          "expression": {
            "type": "Identifier",
            "name": "C",
            "decorators": [],
            "loc": {
              "start": {
                "line": 13,
                "column": 24
              },
              "end": {
                "line": 13,
                "column": 25
              }
            }
          },
          "loc": {
            "start": {
              "line": 13,
              "column": 26
            },
            "end": {
              "line": 13,
              "column": 25
            }
          }
        }
      ],
      "loc": {
        "start": {
          "line": 13,
          "column": 1
        },
        "end": {
          "line": 15,
          "column": 2
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "d",
            "typeAnnotation": {
              "type": "TSTypeReference",
              "typeName": {
                "type": "Identifier",
                "name": "D",
                "decorators": [],
                "loc": {
                  "start": {
                    "line": 17,
                    "column": 8
                  },
                  "end": {
                    "line": 17,
                    "column": 9
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 17,
                  "column": 8
                },
                "end": {
                  "line": 17,
                  "column": 9
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 17,
                "column": 5
              },
              "end": {
                "line": 17,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 17,
              "column": 5
            },
            "end": {
              "line": 17,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 17,
          "column": 1
        },
        "end": {
          "line": 17,
          "column": 10
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "a",
            "typeAnnotation": {
              "type": "TSTypeReference",
              "typeName": {
                "type": "Identifier",
                "name": "A",
                "decorators": [],
                "loc": {
                  "start": {
                    "line": 18,
                    "column": 8
                  },
                  "end": {
                    "line": 18,
                    "column": 9
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 18,
                  "column": 8
                },
                "end": {
                  "line": 18,
                  "column": 9
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 18,
                "column": 5
              },
              "end": {
                "line": 18,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 18,
              "column": 5
            },
            "end": {
              "line": 18,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 18,
          "column": 1
        },
        "end": {
          "line": 18,
          "column": 10
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "AssignmentExpression",
        "operator": "=",
        "left": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 20,
              "column": 1
            },
            "end": {
              "line": 20,
              "column": 2
            }
          }
        },
        "right": {
          "type": "Identifier",
          "name": "d",
          "decorators": [],
          "loc": {
            "start": {
              "line": 20,
              "column": 5
            },
            "end": {
              "line": 20,
              "column": 6
            }
          }
        },
        "loc": {
          "start": {
            "line": 20,
            "column": 1
          },
          "end": {
            "line": 20,
            "column": 6
          }
        }
      },
      "loc": {
        "start": {
          "line": 20,
          "column": 1
        },
        "end": {
          "line": 20,
          "column": 7
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "AssignmentExpression",
        "operator": "=",
        "left": {
          "type": "Identifier",
          "name": "d",
          "decorators": [],
          "loc": {
            "start": {
              "line": 21,
              "column": 1
            },
            "end": {
              "line": 21,
              "column": 2
            }
          }
        },
        "right": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 21,
              "column": 5
            },
            "end": {
              "line": 21,
              "column": 6
            }
          }
        },
        "loc": {
          "start": {
            "line": 21,
            "column": 1
          },
          "end": {
            "line": 21,
            "column": 6
          }
        }
      },
      "loc": {
        "start": {
          "line": 21,
          "column": 1
        },
        "end": {
          "line": 21,
          "column": 7
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 21,
      "column": 7
    }
  }
}
TypeError: Type 'A' is not assignable to type 'D'. [interfaceAssignment3.ts:21:1]
