about summary refs log tree commit diff
path: root/users/tazjin/rlox/examples/scope2.lox
blob: f826c865880382f8987a382b966576e764aa72a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
var a = "global";
{
  fun showA() {
    print a;
  }

  showA();
  var a = "block";
  showA();
}