Skip to content

Instantly share code, notes, and snippets.

@richlander
Created July 28, 2015 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richlander/917720f03afc445c94ee to your computer and use it in GitHub Desktop.
Save richlander/917720f03afc445c94ee to your computer and use it in GitHub Desktop.
F# repro code for RyuJit tail call issue.
open System
type T() =
member __.F1(arg1 : string byref, arg2, arg3 : Nullable<int>, arg4 : bool) =
arg1 <- arg1
__.F2(arg1, arg2, arg3, arg4)
member __.F2(_ : string, _ : obj, arg : Nullable<int>, _ : bool) =
Console.WriteLine("{0}", arg) // prints "random" number
let mutable s = null
T().F1<string>(&s, null, Nullable(), true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment