Wiki

Ticket #162 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Array covariance

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

Description

Apparently C# treats arrays in a special manner (I believe this treatment differs from generics such as List<of T>) as described in a  discussion post.

Cobra should support this treatment.

Attachments

array-coVar.patch Download (3.9 KB) - added by hopscc 15 years ago.

Change History

Changed 15 years ago by hopscc

Changed 15 years ago by hopscc

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

patch+tests+relnote for array covariance as stated.

I suspect cobra should also support this from lists assigned to streams ( it does not currently - see commented test) but in
a relatively cursory search I couldnt determine what should be modified to do so.

Changed 15 years ago by Chuck

I'm looking at this now.

Changed 15 years ago by Chuck

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

Patch applied in changeset:2131. Thanks.

I put the tests with the other array tests:

AM   Tests/110-basics-two/800-arrays/142-array-covariance-errors.cobra
AM   Tests/110-basics-two/800-arrays/140-array-covariance.cobra
Note: See TracTickets for help on using tickets.