[nem-bug] [Nemerle 0001039]: Type System.Byte must be compatible with array index

feedback at nemerle.org feedback at nemerle.org
Sun Aug 12 00:06:05 CEST 2007


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=1039> 
======================================================================
Reported By:                GlebZ
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   1039
Category:                   Code Completion Engine
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             08-12-2007 00:06 CEST
Last Modified:              08-12-2007 00:06 CEST
======================================================================
Summary:                    Type System.Byte must be compatible with array index
Description: 
#pragma indent
public class TestArr
    arr:array[int]
    public this()
        arr=array(127)
        def b:byte = 10b 
        arr[b]=1   //error
    
module Test
    Main():void
        _=TestArr()
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
08-12-07 00:06 GlebZ          New Issue                                    
08-12-07 00:06 GlebZ          File Added: testing.n                        
======================================================================




More information about the bugs mailing list