Skip to content

typed function and variables #16195

@saeedmfarahani

Description

@saeedmfarahani

Description

there is an example :

function foo<number>(){
    return 11;
}
function foo<string>(){
    return 'eleven';
}

$goo : string = foo();
$hoo = foo<number>();

there are a C# examples we can doing that

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions