Start a new topic

Namespace Conflicting Variable

if you difine a varable with the same name of a namespace that have been used. The variable replaces all the functionality of namespace.

 

using System;

namespace HelloDuoCode
{
  public static class Program
  {
    public static void Main()
    {

var System = "";

      System.Console.WriteLine("Hello DuoCode");
    }
  }
}

 


this works on c# but not on the compiled javascript


Thanks for reporting this case, we will add a compilation error on such case in next version.

Can check this out 

http://try.duoco.de/

Login or Signup to post a comment