Wiki

root/cobra/trunk/Tests/100-basics/025-assign-in-expr.cobra

Revision 1324, 227 bytes (checked in by chuck, 4 years ago)

Fixed: Cobra doesn't exclude irrelevant warnings from the C# backend for non-English languages.
Fixed: Cobra does not detect unused local variables in many cases.

  • Property svn:eol-style set to native
Line 
1# assignment can be used in an expression
2namespace Test
3
4    class Test
5   
6        def main
7            is shared
8            x as int = 0
9            y as int = x = 1
10            a as int = b as int = 5
11            assert a==5
12            assert b==5
13            assert y == 1
14            CobraCore.noOp(x)
Note: See TracBrowser for help on using the browser.