module Fantomas.Core.Tests.LibraryOnlySynExprTests

open NUnit.Framework
open FsUnit
open Fantomas.Core.Tests.TestHelpers

[<Test>]
let ``SynExpr.LibraryOnlyStaticOptimization`` () =
    formatSourceString
        """
     let FromZero () : 'T =
                (get32 0 :?> 'T) when 'T : BigInteger = BigInteger.Zero
"""
        config
    |> prepend newline
    |> should
        equal
        """
let FromZero () : 'T =
    (get32 0 :?> 'T) when 'T: BigInteger = BigInteger.Zero
"""
