This project is read-only.
1

Resolved

Support for 256I literals.

description

Here's the unit test that fails (after defining the Literal.BigInt of bigint case)
 
[<Test>]
member this.``Support for bigint literals`` () =
    let ast = parseModule "let v = 256I"
    [Exp [Let (false,[(PVar "v", Lit (Literal.BigInt 256I))],Lit Unit)]]
    |> AssertAreEqual ast
 
When run through Nunit:
CompilerToAstTests+CompilerToAstTests.Support for bigint literals:
Microsoft.FSharp.Core.MatchFailureException : The match cases were incomplete
 
 
Fix submitted in private correspondance:
 
In SynModuleDeclToAsl, at line 290:
           | SynConst.UserNum (num, ty) -> assert(ty = "I")
                                                           return Ast.Lit(Ast.Literal.BigInt ( bigint.Parse num ))

comments

holoed wrote May 11, 2011 at 12:49 AM

Patch applied. Thanks

wrote Feb 14, 2013 at 12:06 AM

wrote May 16, 2013 at 5:50 AM

wrote May 16, 2013 at 5:50 AM

wrote Jun 14, 2013 at 9:03 AM