//////////////////////////////////////////
using System;
using System.Console;
using Nemerle.Utility;
module A {
class B {
public Foo : int -> int = fun(x) { x };
}
Main() : void { }
}
module C {
public Foo[T](this _ : T) : string { "A" }
}
//////////////////////////////////////////
Unexpected error occurs:
Error: needed a writable location for assignment target, got a yet-untyped
expression, which is read-only
If the extension method is removed, then the code compiles successfully.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
11-27-08 14:03 nikov New Issue
======================================================================
//////////////////////////////////////////
using System;
using System.Console;
using Nemerle.Utility;
module A {
class B {
public Foo : int -> int = fun(x) { x };
}
Main() : void { }
}
module C {
public Foo[T](this _ : T) : string { "A" }
}
//////////////////////////////////////////
Unexpected error occurs:
Error: needed a writable location for assignment target, got a yet-untyped
expression, which is read-only
If the extension method is removed, then the code compiles successfully.
======================================================================
----------------------------------------------------------------------
VladD2 - 11-28-08 04:00
----------------------------------------------------------------------
Fixed in rev. 8158.
Issue History
Date Modified Username Field Change
======================================================================
11-27-08 14:03 nikov New Issue
11-28-08 04:00 VladD2 Status new => resolved
11-28-08 04:00 VladD2 Resolution open => fixed
11-28-08 04:00 VladD2 Assigned To => VladD2
11-28-08 04:00 VladD2 Note Added: 0002142
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0001071 Cannot assign to non-mutable field &quo...
======================================================================
----------------------------------------------------------------------
VladD2 - 11-28-08 04:00
----------------------------------------------------------------------
Fixed in rev. 8158.
Issue History
Date Modified Username Field Change
======================================================================
11-27-08 14:03 nikov New Issue
11-28-08 04:00 VladD2 Status new => resolved
11-28-08 04:00 VladD2 Resolution open => fixed
11-28-08 04:00 VladD2 Assigned To => VladD2
11-28-08 04:00 VladD2 Note Added: 0002142
11-28-08 04:00 VladD2 Description Updated
11-28-08 04:01 VladD2 Relationship added related to 0001071
======================================================================