Wiki

Ticket #67 (closed defect: fixed)

Opened 16 years ago

Last modified 15 years ago

Partial class merge problem re: inheritance

Reported by: Chuck Owned by: eric.sellon
Priority: major Milestone: Cobra 0.9
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

The first partial class takes precedence so if you have:

class X
	is partial
	pass
class X
	is partial
	inherits A
	pass

Then Cobra thinks that X inherits Object instead of A.

Attachments

ticket67.patch Download (3.0 KB) - added by eric.sellon 15 years ago.

Change History

Changed 16 years ago by Chuck

  • milestone set to Cobra 0.9

Changed 15 years ago by eric.sellon

Changed 15 years ago by eric.sellon

  • owner set to eric.sellon
  • status changed from new to assigned

One thing to note with this patch: When compiling the compiler with it, it will correctly warn that the class JavaModule? is told to inherit NativeModule? an extra time.

Changed 15 years ago by Chuck

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

Fixed in changeset:2244

The same thing probably happens for interfaces. I guess we can do a different ticket for that.

Note: See TracTickets for help on using tickets.