Skip to content

Commit 9e06eeb

Browse files
committed
dart: scope and lexical scope
Signed-off-by: Ayush Dubey <[email protected]>
1 parent b0aeda0 commit 9e06eeb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

dart/scope.dart

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
main(List<string> args) {
2+
3+
fooOuter() {
4+
5+
print("Hello from foo outer !");
6+
7+
fooInner() {
8+
9+
print("Hello from foo !");
10+
11+
fooOuter();
12+
13+
}
14+
15+
}
16+
17+
fooOuter();
18+
19+
fooInner();
20+
21+
}

0 commit comments

Comments
 (0)