Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Srtp function not found in Debug build #21031

Backlog

Description

@g874200

I'm using F# 15.2.101.0 with dotnet 11. The attached project builds correctly in Release mode, but it gives the error "Undefined value '__debug'" in Debug mode.

DebugSrtpBug.zip

Activity

  1. added theissue type on Nov 25, 2026
  2. added this to the Backlog milestone on Nov 25, 2026
  3. abonie commented on Nov 27, 2026

    @abonie
    Member

    Would you be able to post a minimal repro as a code snippet?

  4. g874200 commented on Nov 27, 2026

    @g874200
    Author

    The following should demonstrate the error:

    open System.Linq
    
    let inline containedIn<'a,'b when 'b:(member Contains: 'a -> bool)>  (coll: 'b) (item: 'a) : bool =
        coll.Contains(item)
    
    let filterFoo (words: seq<string>) =
        let foobarbaz = Set.ofList ["foo"; "bar"; "baz"]
        words.Where(containedIn foobarbaz)
    

    If you change words.Where to words |> Seq.filter it compiles without error in both Release and Debug. Similarly, there is no error if you change words.Where(containedIn foobarbaz) to words.Where(foobarbaz.Contains)

  5. added a commit that references this issue on Nov 27, 2026
    c1dc316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions