Wiki

Ticket #169 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Improper generated code when using static constructors

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

Description

When providing a static constructor for a class the **public** modifier is present in the generated code, for e.g.

class Foo
  shared
    cue init
      pass

Will generate

public static Foo() { // public isn't allowed here
}

Attachments

static-ctor.patch Download (2.9 KB) - added by hopscc 15 years ago.

Change History

Changed 15 years ago by hopscc

Changed 15 years ago by hopscc

patch, tests and relnote.
code change includes mod to suppress the warning when first line of a ctor is
a 'pass' statement.

Changed 15 years ago by hopscc

  • owner set to Chuck
  • status changed from new to assigned

Changed 15 years ago by Chuck

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in changeset:2184

Note: See TracTickets for help on using tickets.