Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

TypeSpec\of() doesn't take inner reified generics of arbitrary classes into account. #57

@azjezz

Description

@azjezz

example:

final class A<reify T> {}

class B<reify T> {}
final class C<reify Ti, reify To> extends B<Ti> {}

<<__EntryPoint>>
function m(): void {

  require_once __DIR__.'/vendor/autoload.hack';
  \Facebook\AutoloadMap\initialize();

  echo \Facebook\TypeSpec\of<C<string, A<int>>>()->toString();
}

expected output: C<string, A<int>>
actual output: C

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions