[Nemerle 0001071]: Cannot assign to non-mutable field "First" when Nemerle.Utility is imported

7 views
Skip to first unread message

feed...@nemerle.org

unread,
Nov 27, 2008, 10:01:05 PM11/27/08
to nemerl...@googlegroups.com

The following issue has been set as RELATED TO issue 0001153.
======================================================================
<http://nemerle.org/bugs/view.php?id=1071>
======================================================================
Reported By: steffen
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 1071
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 12-29-2007 14:46 CET
Last Modified: 11-28-2008 04:01 CET
======================================================================
Summary: Cannot assign to non-mutable field "First" when
Nemerle.Utility is imported
Description:
The following programm won't compile:

using Nemerle.Utility;

class B {
public First:int;

public this () {
this.First = 0;
}
}

();

FieldUntyped.n:7:9:7:23: error: needed a writable location for assignment
target, got a yet-untyped expression, which is read-only

======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001153 Field of functional type does not compi...
======================================================================

----------------------------------------------------------------------
divan - 12-29-07 20:52
----------------------------------------------------------------------
It's a bug in delayed typing.
I've attached straightforward but inelegant patch, which helps in that
case but probably won't work in more complex situations (I suppose more
changes in delayed typing are needed to fully resolve it).

Issue History
Date Modified Username Field Change
======================================================================
12-29-07 14:46 steffen New Issue
12-29-07 20:48 divan File Added: bug1071.patch
12-29-07 20:52 divan Note Added: 0002021
01-13-08 21:34 divan Issue Monitored: divan
11-28-08 04:01 VladD2 Relationship added related to 0001153
======================================================================

feed...@nemerle.org

unread,
Nov 27, 2008, 10:01:33 PM11/27/08
to nemerl...@googlegroups.com

The following issue has been RESOLVED.

======================================================================
<http://nemerle.org/bugs/view.php?id=1071>
======================================================================
Reported By: steffen
Assigned To: VladD2

======================================================================
Project: Nemerle
Issue ID: 1071
Category: Compiler (type engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:

using Nemerle.Utility;

();

----------------------------------------------------------------------
VladD2 - 11-28-08 04:01
----------------------------------------------------------------------
Fixed in rev. 8158.

Issue History
Date Modified Username Field Change
======================================================================
12-29-07 14:46 steffen New Issue
12-29-07 20:48 divan File Added: bug1071.patch
12-29-07 20:52 divan Note Added: 0002021
01-13-08 21:34 divan Issue Monitored: divan
11-28-08 04:01 VladD2 Relationship added related to 0001153

11-28-08 04:01 VladD2 Status new => resolved
11-28-08 04:01 VladD2 Resolution open => fixed
11-28-08 04:01 VladD2 Assigned To => VladD2
11-28-08 04:01 VladD2 Note Added: 0002143
======================================================================

Reply all
Reply to author
Forward
0 new messages