Ticket #303 (closed defect: duplicate)

Opened 6 years ago

Last modified 6 years ago

static classes unsupported?

Reported by: kobi7 Owned by:
Priority: major Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:


if I set "is shared" on class, I get an error. (cannot declare instance members in a static class)

class ConsoleUtils is shared

the same is true for:

class ConsoleUtils is shared
    def x is shared

Is this by design?
(the benefit in setting a class static, is that it ensures all other members are static)

Thanks alot!

Change History

Changed 6 years ago by hopscc

Dup report
See ticket:179 (includes patch)

Changed 6 years ago by hopscc

  • status changed from new to closed
  • resolution set to duplicate
Note: See TracTickets for help on using tickets.