{
  "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": 7
                },
                "end": {
                  "line": 2,
                  "column": 13
                }
              }
            },
            "loc": {
              "start": {
                "line": 2,
                "column": 5
              },
              "end": {
                "line": 2,
                "column": 14
              }
            }
          },
          {
            "type": "TSPropertySignature",
            "computed": false,
            "optional": false,
            "readonly": false,
            "key": {
              "type": "Identifier",
              "name": "b",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 3,
                  "column": 5
                },
                "end": {
                  "line": 3,
                  "column": 6
                }
              }
            },
            "typeAnnotation": {
              "type": "TSStringKeyword",
              "loc": {
                "start": {
                  "line": 3,
                  "column": 7
                },
                "end": {
                  "line": 3,
                  "column": 13
                }
              }
            },
            "loc": {
              "start": {
                "line": 3,
                "column": 5
              },
              "end": {
                "line": 3,
                "column": 14
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 1,
            "column": 13
          },
          "end": {
            "line": 4,
            "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": 4,
          "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": 7,
                  "column": 5
                },
                "end": {
                  "line": 7,
                  "column": 6
                }
              }
            },
            "typeAnnotation": {
              "type": "TSStringKeyword",
              "loc": {
                "start": {
                  "line": 7,
                  "column": 8
                },
                "end": {
                  "line": 7,
                  "column": 14
                }
              }
            },
            "loc": {
              "start": {
                "line": 7,
                "column": 5
              },
              "end": {
                "line": 7,
                "column": 15
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 6,
            "column": 23
          },
          "end": {
            "line": 8,
            "column": 2
          }
        }
      },
      "id": {
        "type": "Identifier",
        "name": "B",
        "decorators": [],
        "loc": {
          "start": {
            "line": 6,
            "column": 11
          },
          "end": {
            "line": 6,
            "column": 12
          }
        }
      },
      "extends": [
        {
          "type": "TSInterfaceHeritage",
          "expression": {
            "type": "Identifier",
            "name": "A",
            "decorators": [],
            "loc": {
              "start": {
                "line": 6,
                "column": 21
              },
              "end": {
                "line": 6,
                "column": 22
              }
            }
          },
          "loc": {
            "start": {
              "line": 6,
              "column": 23
            },
            "end": {
              "line": 6,
              "column": 22
            }
          }
        }
      ],
      "loc": {
        "start": {
          "line": 6,
          "column": 1
        },
        "end": {
          "line": 8,
          "column": 2
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "a",
            "typeAnnotation": {
              "type": "TSUnionType",
              "types": [
                {
                  "type": "TSTypeReference",
                  "typeName": {
                    "type": "Identifier",
                    "name": "A",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 10,
                        "column": 8
                      },
                      "end": {
                        "line": 10,
                        "column": 9
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 10,
                      "column": 8
                    },
                    "end": {
                      "line": 10,
                      "column": 9
                    }
                  }
                },
                {
                  "type": "TSTypeReference",
                  "typeName": {
                    "type": "Identifier",
                    "name": "B",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 10,
                        "column": 12
                      },
                      "end": {
                        "line": 10,
                        "column": 13
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 10,
                      "column": 12
                    },
                    "end": {
                      "line": 10,
                      "column": 13
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 10,
                  "column": 8
                },
                "end": {
                  "line": 10,
                  "column": 13
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 10,
                "column": 5
              },
              "end": {
                "line": 10,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 10,
              "column": 5
            },
            "end": {
              "line": 10,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 10,
          "column": 1
        },
        "end": {
          "line": 10,
          "column": 14
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "MemberExpression",
        "object": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 11,
              "column": 1
            },
            "end": {
              "line": 11,
              "column": 2
            }
          }
        },
        "property": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 11,
              "column": 3
            },
            "end": {
              "line": 11,
              "column": 4
            }
          }
        },
        "computed": false,
        "optional": false,
        "loc": {
          "start": {
            "line": 11,
            "column": 1
          },
          "end": {
            "line": 11,
            "column": 4
          }
        }
      },
      "loc": {
        "start": {
          "line": 11,
          "column": 1
        },
        "end": {
          "line": 11,
          "column": 5
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "MemberExpression",
        "object": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 12,
              "column": 1
            },
            "end": {
              "line": 12,
              "column": 2
            }
          }
        },
        "property": {
          "type": "Identifier",
          "name": "b",
          "decorators": [],
          "loc": {
            "start": {
              "line": 12,
              "column": 3
            },
            "end": {
              "line": 12,
              "column": 4
            }
          }
        },
        "computed": false,
        "optional": false,
        "loc": {
          "start": {
            "line": 12,
            "column": 1
          },
          "end": {
            "line": 12,
            "column": 4
          }
        }
      },
      "loc": {
        "start": {
          "line": 12,
          "column": 1
        },
        "end": {
          "line": 12,
          "column": 5
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "MemberExpression",
        "object": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 13,
              "column": 1
            },
            "end": {
              "line": 13,
              "column": 2
            }
          }
        },
        "property": {
          "type": "Identifier",
          "name": "d",
          "decorators": [],
          "loc": {
            "start": {
              "line": 13,
              "column": 3
            },
            "end": {
              "line": 13,
              "column": 4
            }
          }
        },
        "computed": false,
        "optional": false,
        "loc": {
          "start": {
            "line": 13,
            "column": 1
          },
          "end": {
            "line": 13,
            "column": 4
          }
        }
      },
      "loc": {
        "start": {
          "line": 13,
          "column": 1
        },
        "end": {
          "line": 13,
          "column": 5
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 13,
      "column": 5
    }
  }
}
TypeError: Property 'd' does not exist on type 'A'. [memberExpTest_6.ts:13:3]
