От: | gerrCrazzy | ||
Дата: | 12.12.06 16:50 | ||
Оценка: |
using System.Console;
macro TestMacro(hisName : string)
{ WriteLine(hisName.GetType()); }
<[ WriteLine("run-time\nparam=" + $hisName ) ]>
P.S. ncc из svn-a, revision 7080test-003-macro.n:9:5:9:33: error: in argument #2 (tl) of list.Cons[System.Object-], needed a list[Nemerle.Compiler.Parsetree.PExpr.Literal-], got list.Cons[string-]: common super type of types [Nemerle.Compiler.Parsetree.PExpr.Literal, string] is just `System.Object', please upcast one of the types to `System.Object' if this is desired