[Nemerle 0001156]: It is impossible to define internal ctor for variant option

1 view
Skip to first unread message

feed...@nemerle.org

unread,
Dec 12, 2008, 2:27:04 PM12/12/08
to nemerl...@googlegroups.com

The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=1156>
======================================================================
Reported By: Lenin
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 1156
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 12-12-2008 20:27 CET
Last Modified: 12-12-2008 20:27 CET
======================================================================
Summary: It is impossible to define internal ctor for variant
option
Description:
I'm getting

"Error 1 inconsistent access attributes specified for method: constructor
SomeClass.Option2..ctor(_N_u1748 : int) :
SomeClass.Option2 d:\Projects\nemerle_tests\nemerle_tests\Main.n 16 8
nemerle_tests"

error when try to compile the following code:

public variant SomeClass
{
| Option1
| Option2
{
internal this(_: int)
{

}
}
}

======================================================================

Issue History
Date Modified Username Field Change
======================================================================
12-12-08 20:27 Lenin New Issue
======================================================================

feed...@nemerle.org

unread,
Dec 13, 2008, 4:27:44 PM12/13/08
to nemerl...@googlegroups.com

The following issue has been RESOLVED.

======================================================================
<http://nemerle.org/bugs/view.php?id=1156>
======================================================================
Reported By: Lenin
Assigned To: divan

======================================================================
Project: Nemerle
Issue ID: 1156
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 12-12-2008 20:27 CET
Last Modified: 12-13-2008 22:27 CET

======================================================================
Summary: It is impossible to define internal ctor for variant
option
Description:
I'm getting

"Error 1 inconsistent access attributes specified for method: constructor
SomeClass.Option2..ctor(_N_u1748 : int) :
SomeClass.Option2 d:\Projects\nemerle_tests\nemerle_tests\Main.n 16 8
nemerle_tests"

error when try to compile the following code:

public variant SomeClass
{
| Option1
| Option2
{
internal this(_: int)
{

}
}
}

======================================================================

----------------------------------------------------------------------
divan - 12-13-08 22:27
----------------------------------------------------------------------
Fixed on r8167.

Issue History
Date Modified Username Field Change
======================================================================
12-12-08 20:27 Lenin New Issue

12-13-08 01:31 divan Issue Monitored: divan
12-13-08 22:27 divan Note Added: 0002153
12-13-08 22:27 divan Assigned To => divan
12-13-08 22:27 divan Status new => resolved
12-13-08 22:27 divan Resolution open => fixed
12-13-08 22:27 divan Description Updated
12-13-08 22:27 divan Additional Information Updated
======================================================================

Reply all
Reply to author
Forward
0 new messages