Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The global keyword is not supported #28

Closed
7sharp9 opened this issue Jun 3, 2013 · 1 comment
Closed

The global keyword is not supported #28

7sharp9 opened this issue Jun 3, 2013 · 1 comment

Comments

@7sharp9
Copy link
Member

7sharp9 commented Jun 3, 2013

If you use the global keyword it is stripped out by fantoms.

Consider:

namespace global
type Startup() =
    let addSeven v =  v + 7
    member x.Invoke(input:obj) =
        let v = input :?> int
        async.Return (addSeven v :> obj) |> Async.StartAsTask

becomes:

namespace 

type Startup() = 
    let addSeven v = v + 7
    member x.Invoke(input : obj) = 
        let v = input :?> int
        async.Return(addSeven v :> obj) |> Async.StartAsTask
dungpa added a commit that referenced this issue Jun 5, 2013
It should handle #28 correctly.
@dungpa
Copy link
Contributor

dungpa commented Jun 7, 2013

Thank you for the bug report. It has been fixed in Fantomas v0.9.7 (on NuGet).

@dungpa dungpa closed this as completed Jun 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants