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 10, 2011 at 11:49 PM

Patch applied. Thanks

wrote Feb 13, 2013 at 11:06 PM

wrote May 16, 2013 at 4:50 AM

wrote May 16, 2013 at 4:50 AM

wrote Jun 14, 2013 at 8:03 AM