FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

Builder internal class constructor rewrite issue [Workaround]

Open builder-main opened this issue 1 year ago • 0 comments

Current Workaround

Thanks to new c# syntax rewrites nicely as type can be omited.

public class Ghost{
        public Ghost MyBuilderFunc()
        {
            return new /*Remove Class name*/(/*params*/);
        }
}

Issue

public class Ghost{
        public Ghost MyBuilderFunc()
        {
            return new Ghost(/*params*/);
        }
}

rewrites to and fail as class mismatch

public class Ghost__Patched{
        public Ghost__Patched MyBuilderFunc()
        {
            return new Ghost(/*params*/);
        }
}

builder-main avatar Oct 16 '24 09:10 builder-main