Skip to content

Enable execution of test scenarios with implementation of static members in derived interfaces once runtime can handle it. #61321

@AlekseyTs

Description

@AlekseyTs

In src\Compilers\CSharp\Test\Symbol\Symbols\DefaultInterfaceImplementationTests.cs:

        private static bool Execute(bool isStatic, bool haveImplementationInDerivedInterface = false)
        {
            // PROTOTYPE(DefaultInterfaceImplementation) : Enable execution for isStatic and haveImplementationInDerivedInterface once runtime can handle it.
            if (!ExecutionConditionUtil.IsMonoOrCoreClr || (isStatic && haveImplementationInDerivedInterface))
            {
                return false;
            }

#if !NET7_0_OR_GREATER
            if (isStatic)
            {
                return false;
            }
#endif

            return true;
        }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions