Skip to content

i think it may be is a bug #39

@imfox

Description

@imfox
namespace Game 
{
    public class KLASS{
        public static string ASTATIC = "im fox"; //error
        public KLASS(){}
        public void on(){}
    }
    public class KLASS2 : KLASS{
        public KLASS2()
        {
            on();
        }
    }
    public class Start
    {
        public static void Main()
        {
            new KLASS2();
        }
    }
}

↑ this will be wrong!

↓ no wrong , but can't init this static menber

namespace Game
{
    public class KLASS{
        public static string ASTATIC;
        public KLASS(){ ASTATIC = "im fox"; }
        public void on(){}
    }

    public class KLASS2 : KLASS{
        public KLASS2()
        {
            on();
        }
    }

    public class Start
    {
        public static void Main()
        {
            new KLASS2();
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions