[nem-bug] [Nemerle 0000670]: Can't set the value of byte array
element with index not divisible by 4 without explicit cast.
feedback at nemerle.org
feedback at nemerle.org
Fri May 12 10:55:52 CEST 2006
A NOTE has been added to this issue.
======================================================================
<http://nemerle.org/bugs/view.php?id=670>
======================================================================
Reported By: eelya
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 670
Category: Compiler
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 05-12-2006 09:09 CEST
Last Modified: 05-12-2006 10:55 CEST
======================================================================
Summary: Can't set the value of byte array element with index
not divisible by 4 without explicit cast.
Description:
Code:
using System;
using System.Console;
def a = array(2) : array[Byte];
a[1] = 42;
WriteLine("a[1] = {0}", a[1]);
makes output:
a[1] = 0
If expression a[1] = 42 :> Byte; is used instead of one above the output
is
a[1] = 42
(The same thing with any other index not divisible by 4)
======================================================================
----------------------------------------------------------------------
VladD2 - 05-12-06 10:55
----------------------------------------------------------------------
Bug in IL generation. Nemerle produce:
ldc.i4.s 42
stelem.i4
But need:
ldc.i4.s 42
stelem.i1
Issue History
Date Modified Username Field Change
======================================================================
05-12-06 09:09 eelya New Issue
05-12-06 10:55 VladD2 Note Added: 0001274
======================================================================
More information about the bugs
mailing list