Skip to content

Commit

Permalink
Regression test for issue dotnet#30
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjkennedy committed Jan 29, 2015
1 parent 72635a9 commit 6cc2e77
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/fsharp/core/unitsOfMeasure/test.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ let CreateBadImageFormatException () =
let create a b c d (e:int<_>) (f:int) g = TheType.Create a b (int c) d e f g
seq { yield create 0 0 0 0 0 0 [0] }


// Regression test for https://github.com/Microsoft/visualfsharp/issues/30
// (Compilation error: "Incorrect number of type arguments to local call"
type R<[<Measure>] 'u> (f : float<'u>) =
member r.Member = f

let get (r : R<_>) = r.Member
let foo =
let problem _ = List.map get
problem // Error: Incorrect number of type arguments to local call


module TestLibrary =

[<Measure>]
Expand Down

0 comments on commit 6cc2e77

Please sign in to comment.