Wiki

Ticket #302 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

cobra internal error on mixin method collision

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

Description

Error: error: COBRA INTERNAL ERROR / ArgumentException? / ”˜‰ˆ ’ Ž”š‡ †„„ …‘“ ‹˜.

(generic_project)


caused by: two mixins with the same method (method conflict)

example:

mixin MixA
	def sayhello
		pass

mixin MixB
	def sayhello
		pass

class Hello
	adds MixA, MixB

	def main
		pass


Attachments

mixin-collision.patch Download (2.6 KB) - added by hopscc 5 years ago.

Change History

Changed 5 years ago by hopscc

Changed 5 years ago by hopscc

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

Test for requirement causing internal error and emit error messages.
3 tests for colliding methodnames, props and fields.
Still needs overload handling implemented.

Changed 5 years ago by Charles

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

Patch applied in changeset:2954

Thanks.

Note: See TracTickets for help on using tickets.