Skip to content

Try to reproduce #1749#1786

Merged
dsyme merged 3 commits intodotnet:masterfrom
forki:fun-ignore
Nov 21, 2016
Merged

Try to reproduce #1749#1786
dsyme merged 3 commits intodotnet:masterfrom
forki:fun-ignore

Conversation

@forki
Copy link
Contributor

@forki forki commented Nov 20, 2016

This tries to reproduce the bug reported in #1749

let run2 (f:System.Func<unit,string>) = f.Invoke()

let b = run2 (System.Func<unit,string>(fun () -> "hello world 2"))
let b' = run2 (System.Func<unit,string>(fun _ -> "hello world 2"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a scenario too.

let b'' = run2 (System.Func<unit,string>(fun x -> "hello world 2"))

Copy link
Contributor Author

@forki forki Nov 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom @dsyme @vladima I put this into the code but the test is not red!?
I thought the code gets compiled and the executed? What do I need to change to let my code run?

@forki forki changed the title WIP: Try to reproduce #1749 Try to reproduce #1749 Nov 21, 2016
@forki
Copy link
Contributor Author

forki commented Nov 21, 2016

Ok this doesn't reproduce #1749, but at least we can use it to make sure we don't break similar cases

What's interesting about it, is that it was jareds work around.

@dsyme dsyme merged commit 384451e into dotnet:master Nov 21, 2016
@dsyme
Copy link
Contributor

dsyme commented Nov 21, 2016

@forki Thanks for adding the test case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants