Bug 32564 - F# on Mono and Windows - discrepancy with simple function
Summary: F# on Mono and Windows - discrepancy with simple function
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: 4.0.0
Hardware: Macintosh Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-07-29 06:51 UTC by kevinknoop
Modified: 2017-08-28 15:05 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description kevinknoop 2015-07-29 06:51:41 UTC
Steps to reproduce the problem:
Enter the following code into an F# script with Xamarin Studio:

let filterOut item l =
  l |> List.filter (fun t -> not (t = item)) 

let f = 
  |> filterOut "3"

Actual Results:

val f : string list = ["1"]

Expected Results:

val f : string list = ["1"; "2"]

How often does this happen? 
Every time.

Additional Information:
Full explanation of the problem at http://stackoverflow.com/questions/31677514/f-on-mono-and-windows-discrepancy-with-simple-function

Version Information:
Xamarin Studio
Version 5.9.5 (build 6)
	Mono 4.0.3 ((detached/e4f44c1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400030019

F# 3.1
Comment 1 kevinknoop 2015-09-01 05:02:28 UTC
Tested on Mono 4.2.0 and now works as expected.