Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parametric types evaluation #1525

Closed
coot opened this issue Mar 11, 2016 · 1 comment
Closed

parametric types evaluation #1525

coot opened this issue Mar 11, 2016 · 1 comment

Comments

@coot
Copy link

coot commented Mar 11, 2016

Currently this is impossible:

/* @flow */
declare type get<T> =  () => T;
declare type ID<T> = T;

// flow complains here, that it does not expect any parameters for the T type
declare type X<T> = T<string>;

let x: X<ID> = 'abc';
let f: X<get> = () => 'abc';

I also tried declare type X<T<U>> but this syntax is not allowed.

@TrySound
Copy link
Contributor

TrySound commented Feb 4, 2019

Duplicate of #30

@TrySound TrySound marked this as a duplicate of #30 Feb 4, 2019
@TrySound TrySound closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants