fork(6) download
  1. using System;
  2.  
  3. namespace ConsoleApplication1
  4. {
  5. internal class Program
  6. {
  7. private static void foo()
  8. {
  9. Console.WriteLine((object) 7);
  10. }
  11.  
  12. private static void bar()
  13. {
  14. object obj = (object) 5;
  15. if (Program.\u003Cbar\u003Eo__SiteContainer0.\u003C\u003Ep__Site1 == null)
  16. {
  17. Program.\u003Cbar\u003Eo__SiteContainer0.\u003C\u003Ep__Site1 = CallSite<Action<CallSite, Type, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.ResultDiscarded, "WriteLine", (IEnumerable<Type>) null, typeof (Program), (IEnumerable<CSharpArgumentInfo>) new CSharpArgumentInfo[2]
  18. {
  19. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, (string) null),
  20. CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string) null)
  21. }));
  22. }
  23. Program.\u003Cbar\u003Eo__SiteContainer0.\u003C\u003Ep__Site1.Target((CallSite) Program.\u003Cbar\u003Eo__SiteContainer0.\u003C\u003Ep__Site1, typeof (Console), obj);
  24. }
  25.  
  26. private static void Main(string[] args)
  27. {
  28. Program.foo();
  29. Program.bar();
  30. }
  31. }
  32. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(15,19): error CS0117: `ConsoleApplication1.Program' does not contain a definition for `<baro__SiteContainer0'
prog.cs(5,18): (Location of the symbol related to previous error)
prog.cs(17,71): error CS0103: The name `CallSite' does not exist in the current context
prog.cs(17,17): error CS0117: `ConsoleApplication1.Program' does not contain a definition for `<baro__SiteContainer0'
prog.cs(5,18): (Location of the symbol related to previous error)
prog.cs(23,15): error CS0117: `ConsoleApplication1.Program' does not contain a definition for `<baro__SiteContainer0'
prog.cs(5,18): (Location of the symbol related to previous error)
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty