Created
July 28, 2015 18:00
-
-
Save richlander/917720f03afc445c94ee to your computer and use it in GitHub Desktop.
F# repro code for RyuJit tail call issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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