Ticket #75 (closed defect: fixed)
Catch assignments to read-only properties and indexers
Reported by: | Chuck | Owned by: | eric.sellon |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
This is an error that Cobra misses that is dropping through to C#.
class X get two as int return 2 def main is shared x = X() x.two = 4 # .error. cannot be assigned to # drops through to C#: # Property or indexer "X.Two" cannot be assigned to -- it is read only (C#)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.