Giter Site home page Giter Site logo

Comments (5)

KennethHoff avatar KennethHoff commented on July 21, 2024

I haven't used it, but is this a case of "bigger number is lower priority"? E.g. use -1 instead?

from roslyn.

WeihanLi avatar WeihanLi commented on July 21, 2024

@KennethHoff from the comment here, a higher priority would be preferred

The priority of the attributed member. Higher numbers are prioritized, lower numbers are deprioritized. 0 is the default if no attribute is present.

https://github.com/dotnet/runtime/blob/7bc92926b36617f7a0646a8d936782bc4c3264ab/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/OverloadResolutionPriorityAttribute.cs#L15

And when I add [OverloadResolutionPriority(2)] to the public static void OverloadTest2(params ReadOnlySpan<int> span) method, it produces the same output

from roslyn.

333fred avatar 333fred commented on July 21, 2024

While the attribute has indeed been merged, compiler support has not been implemented yet. That will happen, but until then, the attribute having no effect is indeed expected.

from roslyn.

WeihanLi avatar WeihanLi commented on July 21, 2024

@333fred should we close this when the support completed for the compiler

from roslyn.

333fred avatar 333fred commented on July 21, 2024

It is not useful to keep a bug open that tracks that we haven't yet implemented a feature. When we have a test plan issue, you can use that to track if we've implemented it.

from roslyn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.