Skip to content

Typename does not parse: [system.tuple[string[],string[]]] #9639

@rjmholt

Description

@rjmholt

Steps to reproduce

[system.tuple[string[],string[]]]

Expected behavior


IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Tuple`2                                  System.Object

(You can make this with [tuple`2].MakeGenericType(([string[]],[string[]])))

Actual behavior

At line:1 char:33
+ [system.tuple[string[],string[]]]
+                                 ~
Unexpected token ']' in expression or statement.
+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.2.0
PSEdition                      Core
GitCommitId                    6.2.0
OS                             Microsoft Windows 10.0.18903
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Languageparser, language semantics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions