This commit is contained in:
Mattia 2020-10-22 18:03:58 +02:00 committed by GitHub
parent c31fcd1142
commit 520477656e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -26,11 +26,11 @@ var a = "global";
var b = "global1";
{ // open a new scope
var b = "local"; // Shadow the global variable
print(a; // This falls back to the global scope
print(b;
print(a); // This falls back to the global scope
print(b);
}
print(a);
print(b)] // The outer scope isn't affected
print(b); // The outer scope isn't affected
/*
A multiline comment