[nem-bug] [Nemerle 0000652]: Generic parameter names can't be used
inside quoted declaration
feedback at nemerle.org
feedback at nemerle.org
Sat Apr 8 11:49:47 CEST 2006
The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=652>
======================================================================
Reported By: OysterDva
Assigned To:
======================================================================
Project: Nemerle
Issue ID: 652
Category: Compiler (parser/macros engine)
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 04-08-2006 11:49 CEST
Last Modified: 04-08-2006 11:49 CEST
======================================================================
Summary: Generic parameter names can't be used inside quoted
declaration
Description:
Here is the macro which defines new generic type:
macro TestMacro()
{
def t = Nemerle.Macros.ImplicitCTX().Env.Define(<[ decl:
public class TestClass['a]
{
public this(value : 'a) {}
}
]>);
t.Compile();
<[ TestClass() ]>
}
If I'm trying to use ths macro then compilation fails. Error message is
the following: "error : unbound type name `'a'".
Without constructor (which has parameter of type 'a - generic parameter
name) everything works like a charm.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
04-08-06 11:49 OysterDva New Issue
======================================================================
More information about the bugs
mailing list