Ticket #74 (new defect)

Opened 8 weeks ago

Last modified 3 weeks ago

Cannot pass dynamic values to initializers

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

Description

The following code gives false compilation errors on the commented line:

class X

	def init
		.init(0, 'aoeu')
		
	def init(i as int, s as String)
		pass

	def foo(i as int, s as String)
		pass

	def main is shared
		a = 1 to dynamic
		b = 'aoeu' to dynamic
		x = X(a, b)  # test passing dynamic to an initializer
		x = X()
		x.foo(a, b)

Change History

Changed 3 weeks ago by Chuck

  • milestone set to Cobra 0.9
Note: See TracTickets for help on using tickets.