Wiki

root/cobra/trunk/Tests/100-basics/085-instantiation.cobra

Revision 1181, 261 bytes (checked in by chuck, 4 years ago)

Warn about unnecessary parens on method declarations and calls that have no arguments.

  • Property svn:eol-style set to native
Line 
1namespace Test
2   
3    class Test
4       
5        def main
6            is shared
7           
8            a as Object = Object()
9            b as Object = Object()
10           
11            assert a is not b
12           
13            sb as StringBuilder = StringBuilder()
14            sb.append('abc, ')
15            sb.append('def')
16            assert sb.toString=='abc, def'
17           
Note: See TracBrowser for help on using the browser.