Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Fix compilation errors in control.fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Guerra committed Feb 18, 2013
1 parent 5d6bbcd commit 4f0fe80
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/fsharp/FSharp.Core/control.fs
Expand Up @@ -402,7 +402,12 @@ namespace Microsoft.FSharp.Control


[<AllowNullLiteral>] [<AllowNullLiteral>]
type Trampoline() = type Trampoline() =


let mutable cont = None
let mutable bindCount = 0

static let unfake FakeUnit = ()

[<Literal>] [<Literal>]
static let bindLimitBeforeHijack = 300 static let bindLimitBeforeHijack = 300
#if FX_NO_THREAD_STATIC #if FX_NO_THREAD_STATIC
Expand All @@ -418,10 +423,6 @@ namespace Microsoft.FSharp.Control
#else #else
Trampoline.thisThreadHasTrampoline Trampoline.thisThreadHasTrampoline
#endif #endif
let mutable cont = None
let mutable bindCount = 0

static let unfake FakeUnit = ()


// Install a trampolineStack if none exists // Install a trampolineStack if none exists
member this.ExecuteAction (firstAction : unit -> FakeUnitValue) = member this.ExecuteAction (firstAction : unit -> FakeUnitValue) =
Expand Down Expand Up @@ -529,6 +530,7 @@ namespace Microsoft.FSharp.Control
member this.Protect firstAction = member this.Protect firstAction =
trampoline <- new Trampoline() trampoline <- new Trampoline()
trampoline.ExecuteAction(firstAction) trampoline.ExecuteAction(firstAction)
FakeUnit


member this.Trampoline = trampoline member this.Trampoline = trampoline


Expand Down

0 comments on commit 4f0fe80

Please sign in to comment.