Skip to content

Instantly share code, notes, and snippets.

@NN---
Created October 27, 2013 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NN---/7186701 to your computer and use it in GitHub Desktop.
Save NN---/7186701 to your computer and use it in GitHub Desktop.
using System;
using System.Console;
using M;
class Test
{
public static @()(this _ : this, s : string) : void
{
}
}
public module M
{
internal @$ : Test;
}
module P
{
Main():void
{
M.@$("A"); // OK
// @$("A"); // error : internal compiler error: got some unknown exception of type System.InvalidCastException: Unable to cast object of type 'Nemerle.Compiler.FieldBuilder' to type 'Nemerle.Compiler.IMethod'.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment