Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

clutz: Union of two generic functions is Function #715

Open

Description

@ribrdb

The following: (reduced from goog.soy.renderAsElement)

/**
 * @param {?function(T, Object<string, *>=):*|?function(T, null=, Object<string, *>=):*} t
 * @param {T=} d 
 * @template T
 */
renderAsElement = function(t, d) {}

becomes function renderAsElement < T > (t : Function | null , d ? : T ) : void
Either function type on its own gets correctly converted. Also if I change the T to string, the union gets correctly converted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions