PowerShell internal functions

Working with PowerShell for years already, never knew that this would work! Internal functions in PowerShell (they probably have a better name):

function x
{
    function y
    {
        "function y"
    }
    y
}

PS> x

function y

PS> y

ERROR!

No Comments