root/cobra/trunk/Tests/100-basics/026-assign-in-statement.cobra
| Revision 1324, 179 bytes (checked in by chuck, 4 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | # an expression (such as assignment) can be a statement |
| 2 | namespace Test |
| 3 | |
| 4 | class Test |
| 5 | |
| 6 | def main |
| 7 | is shared |
| 8 | x as int = 0 |
| 9 | y as int = x = 1 |
| 10 | y = 3 |
| 11 | CobraCore.noOp(x, y) |
Note: See TracBrowser
for help on using the browser.



