Ticket #54 (closed defect: fixed)
For statement type inference bug with HashTable
Reported by: | hopscc | Owned by: | Chuck |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
Erroneous compilation error
htbl=HashTable() htbl['a'] ='value1' ... for de in htbl # de to DictionaryEntry # works if cast explicitly print de.key, de.value
gives error
Cannot find a definition for "key" in "de" whose type is "Object?
Should be able to infer type of de as DictionaryEntry
See discussion and fixup area of attack in
Type inference bug with hashTable and for
Not seen as major since Hashtable not used frequently...
Attachments
Change History
Note: See
TracTickets for help on using
tickets.