{"id":15411103,"url":"https://github.com/7sharp9/genericequalitybug","last_synced_at":"2025-06-16T13:09:41.511Z","repository":{"id":12936599,"uuid":"15614434","full_name":"7sharp9/GenericEqualityBug","owner":"7sharp9","description":null,"archived":false,"fork":false,"pushed_at":"2014-01-07T10:52:05.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T00:18:27.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7sharp9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-03T16:56:03.000Z","updated_at":"2014-01-07T10:52:05.000Z","dependencies_parsed_at":"2022-08-28T10:12:13.656Z","dependency_job_id":null,"html_url":"https://github.com/7sharp9/GenericEqualityBug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7sharp9/GenericEqualityBug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sharp9%2FGenericEqualityBug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sharp9%2FGenericEqualityBug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sharp9%2FGenericEqualityBug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sharp9%2FGenericEqualityBug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7sharp9","download_url":"https://codeload.github.com/7sharp9/GenericEqualityBug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7sharp9%2FGenericEqualityBug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260166294,"owners_count":22968632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T16:47:59.963Z","updated_at":"2025-06-16T13:09:41.478Z","avatar_url":"https://github.com/7sharp9.png","language":"F#","readme":"Generic Equality Bug\n====================\nThese are unit tests for iOS that show a failure in generic equality in Arrays  \ne.g [|0|] = [|0|] should equate to true, however, this throws a null reference exception while running on iOS hardware:\n\n```\niec: Microsoft.FSharp.Core.LanguagePrimitives+HashCompare+fsEqualityComparer@1632\n \t[FAIL] Using GenericEquality code from Fsharp.Core I expect identical integer arrays to be equal : System.NullReferenceException : Object reference not set to an instance of an object\n \t\t  at Microsoft.FSharp.Core.LanguagePrimitives+HashCompare.GenericEqualityObj$cont@1471 (Boolean er, IEqualityComparer iec, System.Object yobj, System.Object xobj, System.Array arr1, Microsoft.FSharp.Core.Unit unitVar) [0x00178] in /Users/dave/code/fsharp/src/fsharp/FSharp.Core/prim-types.fs:1485 \n \t\t  at Microsoft.FSharp.Core.LanguagePrimitives+HashCompare.GenericEqualityObj (Boolean er, IEqualityComparer iec, System.Object xobj, System.Object yobj) [0x00040] in /Users/dave/code/fsharp/src/fsharp/FSharp.Core/prim-types.fs:1471 \n \t\t  at Microsoft.FSharp.Core.LanguagePrimitives+HashCompare+fsEqualityComparer@1632.System-Collections-IEqualityComparer-Equals (System.Object x, System.Object y) [0x00000] in /Users/dave/code/fsharp/src/fsharp/FSharp.Core/prim-types.fs:1633 \n \t\t  at Microsoft.FSharp.Core.LanguagePrimitives+HashCompare.GenericEqualityIntrinsic[Int32[]] (System.Int32[] x, System.Int32[] y) [0x00000] in \u003cfilename unknown\u003e:0 \n \t\t  at LanguageUnitTests.Generic equality tests.Using GenericEquality code from Fsharp.Core I expect identical integer arrays to be equal () [0x00000] in /Users/dave/Projects/FsharpUnitTestProject/GenericEqualityBug/UnitTest.fs:15 \n \t\t  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception\u0026)\n \t\t  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00044] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7sharp9%2Fgenericequalitybug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7sharp9%2Fgenericequalitybug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7sharp9%2Fgenericequalitybug/lists"}