{
  "type": "Program",
  "statements": [
    {
      "type": "TSTypeAliasDeclaration",
      "id": {
        "type": "Identifier",
        "name": "A",
        "decorators": [],
        "loc": {
          "start": {
            "line": 1,
            "column": 6
          },
          "end": {
            "line": 1,
            "column": 7
          }
        }
      },
      "typeAnnotation": {
        "type": "TSArrayType",
        "elementType": {
          "type": "TSParenthesizedType",
          "typeAnnotation": {
            "type": "TSUnionType",
            "types": [
              {
                "type": "TSTypeReference",
                "typeName": {
                  "type": "Identifier",
                  "name": "T",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 80
                    },
                    "end": {
                      "line": 1,
                      "column": 81
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 80
                  },
                  "end": {
                    "line": 1,
                    "column": 81
                  }
                }
              },
              {
                "type": "TSTypeReference",
                "typeName": {
                  "type": "Identifier",
                  "name": "B",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 84
                    },
                    "end": {
                      "line": 1,
                      "column": 85
                    }
                  }
                },
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 84
                  },
                  "end": {
                    "line": 1,
                    "column": 85
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 1,
                "column": 80
              },
              "end": {
                "line": 1,
                "column": 85
              }
            }
          },
          "loc": {
            "start": {
              "line": 1,
              "column": 79
            },
            "end": {
              "line": 1,
              "column": 86
            }
          }
        },
        "loc": {
          "start": {
            "line": 1,
            "column": 79
          },
          "end": {
            "line": 1,
            "column": 88
          }
        }
      },
      "typeParameters": {
        "type": "TSTypeParameterDeclaration",
        "params": [
          {
            "type": "TSTypeParameter",
            "name": {
              "type": "Identifier",
              "name": "T",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 8
                },
                "end": {
                  "line": 1,
                  "column": 9
                }
              }
            },
            "default": {
              "type": "TSFunctionType",
              "params": [
                {
                  "type": "Identifier",
                  "name": "a",
                  "typeAnnotation": {
                    "type": "TSNumberKeyword",
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 16
                      },
                      "end": {
                        "line": 1,
                        "column": 22
                      }
                    }
                  },
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 13
                    },
                    "end": {
                      "line": 1,
                      "column": 14
                    }
                  }
                },
                {
                  "type": "Identifier",
                  "name": "b",
                  "typeAnnotation": {
                    "type": "TSStringKeyword",
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 27
                      },
                      "end": {
                        "line": 1,
                        "column": 33
                      }
                    }
                  },
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 24
                    },
                    "end": {
                      "line": 1,
                      "column": 25
                    }
                  }
                }
              ],
              "returnType": {
                "type": "TSBooleanKeyword",
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 38
                  },
                  "end": {
                    "line": 1,
                    "column": 45
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 1,
                  "column": 12
                },
                "end": {
                  "line": 1,
                  "column": 45
                }
              }
            },
            "loc": {
              "start": {
                "line": 1,
                "column": 8
              },
              "end": {
                "line": 1,
                "column": 46
              }
            }
          },
          {
            "type": "TSTypeParameter",
            "name": {
              "type": "Identifier",
              "name": "B",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 47
                },
                "end": {
                  "line": 1,
                  "column": 48
                }
              }
            },
            "default": {
              "type": "TSTypeLiteral",
              "members": [
                {
                  "type": "TSPropertySignature",
                  "computed": false,
                  "optional": false,
                  "readonly": false,
                  "key": {
                    "type": "Identifier",
                    "name": "a",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 53
                      },
                      "end": {
                        "line": 1,
                        "column": 54
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSNumberKeyword",
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 56
                      },
                      "end": {
                        "line": 1,
                        "column": 62
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 53
                    },
                    "end": {
                      "line": 1,
                      "column": 63
                    }
                  }
                },
                {
                  "type": "TSPropertySignature",
                  "computed": false,
                  "optional": false,
                  "readonly": false,
                  "key": {
                    "type": "Identifier",
                    "name": "b",
                    "decorators": [],
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 64
                      },
                      "end": {
                        "line": 1,
                        "column": 65
                      }
                    }
                  },
                  "typeAnnotation": {
                    "type": "TSStringKeyword",
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 67
                      },
                      "end": {
                        "line": 1,
                        "column": 73
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 64
                    },
                    "end": {
                      "line": 1,
                      "column": 75
                    }
                  }
                }
              ],
              "loc": {
                "start": {
                  "line": 1,
                  "column": 51
                },
                "end": {
                  "line": 1,
                  "column": 75
                }
              }
            },
            "loc": {
              "start": {
                "line": 1,
                "column": 47
              },
              "end": {
                "line": 1,
                "column": 76
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 1,
            "column": 7
          },
          "end": {
            "line": 1,
            "column": 76
          }
        }
      },
      "loc": {
        "start": {
          "line": 1,
          "column": 1
        },
        "end": {
          "line": 1,
          "column": 89
        }
      }
    },
    {
      "type": "EmptyStatement",
      "loc": {
        "start": {
          "line": 1,
          "column": 88
        },
        "end": {
          "line": 1,
          "column": 89
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "a",
            "typeAnnotation": {
              "type": "TSTypeReference",
              "typeName": {
                "type": "Identifier",
                "name": "A",
                "decorators": [],
                "loc": {
                  "start": {
                    "line": 3,
                    "column": 8
                  },
                  "end": {
                    "line": 3,
                    "column": 9
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 3,
                  "column": 8
                },
                "end": {
                  "line": 3,
                  "column": 9
                }
              }
            },
            "decorators": [],
            "loc": {
              "start": {
                "line": 3,
                "column": 5
              },
              "end": {
                "line": 3,
                "column": 6
              }
            }
          },
          "init": null,
          "loc": {
            "start": {
              "line": 3,
              "column": 5
            },
            "end": {
              "line": 3,
              "column": 6
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 3,
          "column": 1
        },
        "end": {
          "line": 3,
          "column": 10
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "o",
            "decorators": [],
            "loc": {
              "start": {
                "line": 5,
                "column": 5
              },
              "end": {
                "line": 5,
                "column": 6
              }
            }
          },
          "init": {
            "type": "ObjectExpression",
            "properties": [
              {
                "type": "Property",
                "method": false,
                "shorthand": false,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "name": "a",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 6,
                      "column": 5
                    },
                    "end": {
                      "line": 6,
                      "column": 6
                    }
                  }
                },
                "value": {
                  "type": "StringLiteral",
                  "value": "",
                  "loc": {
                    "start": {
                      "line": 6,
                      "column": 8
                    },
                    "end": {
                      "line": 6,
                      "column": 13
                    }
                  }
                },
                "kind": "init",
                "loc": {
                  "start": {
                    "line": 6,
                    "column": 5
                  },
                  "end": {
                    "line": 6,
                    "column": 13
                  }
                }
              },
              {
                "type": "Property",
                "method": false,
                "shorthand": false,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "name": "b",
                  "decorators": [],
                  "loc": {
                    "start": {
                      "line": 7,
                      "column": 5
                    },
                    "end": {
                      "line": 7,
                      "column": 6
                    }
                  }
                },
                "value": {
                  "type": "StringLiteral",
                  "value": "",
                  "loc": {
                    "start": {
                      "line": 7,
                      "column": 8
                    },
                    "end": {
                      "line": 7,
                      "column": 13
                    }
                  }
                },
                "kind": "init",
                "loc": {
                  "start": {
                    "line": 7,
                    "column": 5
                  },
                  "end": {
                    "line": 7,
                    "column": 13
                  }
                }
              }
            ],
            "loc": {
              "start": {
                "line": 5,
                "column": 9
              },
              "end": {
                "line": 8,
                "column": 2
              }
            }
          },
          "loc": {
            "start": {
              "line": 5,
              "column": 5
            },
            "end": {
              "line": 8,
              "column": 2
            }
          }
        }
      ],
      "kind": "var",
      "loc": {
        "start": {
          "line": 5,
          "column": 1
        },
        "end": {
          "line": 8,
          "column": 2
        }
      }
    },
    {
      "type": "ExpressionStatement",
      "expression": {
        "type": "AssignmentExpression",
        "operator": "=",
        "left": {
          "type": "Identifier",
          "name": "a",
          "decorators": [],
          "loc": {
            "start": {
              "line": 10,
              "column": 1
            },
            "end": {
              "line": 10,
              "column": 2
            }
          }
        },
        "right": {
          "type": "ArrayExpression",
          "elements": [
            {
              "type": "Identifier",
              "name": "o",
              "decorators": [],
              "loc": {
                "start": {
                  "line": 10,
                  "column": 6
                },
                "end": {
                  "line": 10,
                  "column": 7
                }
              }
            }
          ],
          "loc": {
            "start": {
              "line": 10,
              "column": 5
            },
            "end": {
              "line": 10,
              "column": 8
            }
          }
        },
        "loc": {
          "start": {
            "line": 10,
            "column": 1
          },
          "end": {
            "line": 10,
            "column": 8
          }
        }
      },
      "loc": {
        "start": {
          "line": 10,
          "column": 1
        },
        "end": {
          "line": 10,
          "column": 9
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 11,
      "column": 1
    }
  }
}
TypeError: Type '{ a: string; b: string; }' is not assignable to type '(a: number, b: string) => boolean | { a: number; b: string; }'. [generic_type_alias_10.ts:10:6]
