Wiki

Ticket #45 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years ago

False compilation error when assigning values < 0 to int8 and int16

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

Description

Cobra refuses to give lower values of zero to variables of type int8 and int16 returning an error message indicating a type mismatch.

Change History

Changed 16 years ago by Chuck

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

Example:

class Test

	def main is shared
		a as int8 = 1
		b as int8 = 0
		c as int8 = -1  # error: Incompatible types
		CobraCore.noOp(a, b, c)

Changed 16 years ago by Chuck

  • summary changed from problems in attributing lower values of 0 to int and int16 to False compilation error when assigning values < 0 to int8 and int16

Changed 16 years ago by Chuck

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

Fixed with changeset:1717

Note: See TracTickets for help on using tickets.