Ticket #85 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Cannot use `for` expressions on non-generic IEnumerable type

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


This should work, but fails with false compilation errors:

class Test

	def main is shared
		ie as System.Collections.IEnumerable = [1, 2, 3]
		# works:
		# ie as IEnumerable<of int> = [1, 2, 3]
		print for x in ie get x

Change History

Changed 11 years ago by Chuck

Fixed in changeset:1780

Changed 11 years ago by Chuck

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.