Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,19 @@ let main _argv =
"""
|> typecheck
|> shouldSucceed

// https://github.com/dotnet/fsharp/issues/4473
[<Fact>]
let ``Issue 4473 - extern function parameters not flagged as unused with warnon 1182``() =
FSharp """
module Test4473

open System.Runtime.InteropServices

[<DllImport("kernel32.dll")>]
extern bool Beep(int frequency, int duration)
"""
|> withWarnOn 1182
|> asLibrary
|> typecheck
|> shouldSucceed
Loading