Skip to content

type handling error in PowershellLab demo #1

Description

@lc9er

Stumbled across this on Twitter. In playing around with it, there's some incorrect behavior around types.

Example:

> $mynum = 5
> $mynum * 10
5
5
5
5
5
5
5
5
5
5

if a type is specified, it works as expected:

> [int]$mynum = 5
> $mynum * 10
50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions