Describe the bug
If a type recreates (for lack of a better term) a member in a type hierarchy, Rocks doesn't process it correctly.
To Reproduce
var code =
"""
using Rocks;
namespace MockTests
{
public struct ScriptScopeContext { }
public abstract class JsToken
{
public abstract object Evaluate(ScriptScopeContext scope);
}
public abstract class JsOperator
: JsToken
{
public override object Evaluate(ScriptScopeContext scope) => this;
}
public abstract class JsBinaryOperator
: JsOperator
{
public abstract object Evaluate(object target);
}
public static class Test
{
public static void Generate()
{
var rock = Rock.Create<JsBinaryOperator>();
}
}
}
""";
Expected behavior
This handles the type hierarchy correctly.
Additional context
This was found on ServiceStack.Script.JsUnaryOperator
Describe the bug
If a type recreates (for lack of a better term) a member in a type hierarchy, Rocks doesn't process it correctly.
To Reproduce
Expected behavior
This handles the type hierarchy correctly.
Additional context
This was found on
ServiceStack.Script.JsUnaryOperator