Skip to content

Flow "double nullable" type can't be parsed #7924

@nicolo-ribaudo

Description

@nicolo-ribaudo

Bug Report

Current Behavior

It throws a syntax error.

Input Code

type A = ??T;

https://babeljs.io/repl/build/master#?babili=false&browsers=&build=&builtIns=false&code_lz=C4TwDgpgBAglC8UD8SAqBuIA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&lineWrap=true&presets=flow&prettier=false&targets=&version=7.0.0-beta.46&envVersion=

Expected behavior/code
It is the same as

type A = ? ?T;

Environment

  • Babel version(s): v7.0.0-beta.46
  • How you are using Babel: repl

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: flowclaimedoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions