[nem-bug] [Nemerle 0000632]: Increment of fields in structs
feedback at nemerle.org
feedback at nemerle.org
Tue Feb 28 21:14:02 CET 2006
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=632>
======================================================================
Reported By: Tobias
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 632
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 02-28-2006 21:14 CET
Last Modified: 02-28-2006 21:14 CET
======================================================================
Summary: Increment of fields in structs
Description:
#pragma indent
using System.Console
struct A
public mutable x : int
mutable s = A()
WriteLine(s.x)
++s.x
WriteLine(s.x)
s.x += 1
WriteLine(s.x)
s.x = s.x + 1
WriteLine(s.x)
output ->
0
0
0
1
expected
0
1
2
3
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
02-28-06 21:14 Tobias New Issue
======================================================================
More information about the bugs
mailing list