cfad47cfa3/t3compiler/tads3/test/data/fnredef.t
| 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | cfad47cfa334b206c65f22086bcc5d63e6f70944 | ||
|---|---|---|---|
1 | /* | ||
2 | * Re-define a function name | ||
3 | */ | ||
4 | |||
5 | function _main(args) | ||
6 | { | ||
7 | test(); | ||
8 | } | ||
9 | |||
10 | function test() | ||
11 | { | ||
12 | test2(); | ||
13 | } | ||
14 | |||
15 | function test2() | ||
16 | { | ||
17 | tadsSay('hello from test2!\n'); | ||
18 | } | ||
19 | |||
20 | function test() | ||
21 | { | ||
22 | tadsSay('this is the redefined test()\n'); | ||
23 | } | ||
24 |
Download diff