Created
October 27, 2013 19:17
-
-
Save NN---/7186701 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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