Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cauterite/4a5e9828d8bd2bd2ed694851576bb137 to your computer and use it in GitHub Desktop.
Save Cauterite/4a5e9828d8bd2bd2ed694851576bb137 to your computer and use it in GitHub Desktop.
set-strictmode -version 'latest'
$erroractionpreference = 'stop'
function main() {
$a = 'foo'
$f = {
$g = {$a}.getnewclosure()
& $g # "variable '$a' cannot be retrieved because it has not been set."
}.getnewclosure()
& $f
}
main
@jzabroski
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment