TDT4205/exercises/06/vslc/vsl_programs/ps4-symtab/shadow.vsl

24 lines
353 B
Plaintext

func main() begin
var a, b
a := 1
begin
var a
a := 2
b := 40
begin
var a
a := b + 2
print a, b
end
print a
begin
var b
b := 38
a := b + 3
print a, b
end
print a
end
print b
end