You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The value has been copied to ensure the original is not mutated by this operation or because the copy is implicit when returning a struct from a member and another member is then accessed"
196
197
)
197
198
|]
199
+
#endif
200
+
201
+
#if NETCOREAPP
202
+
[<Test>]
203
+
let``Consume CSharp interface with a method that has a readonly byref`` ()=
204
+
letcs=
205
+
"""
206
+
using System;
207
+
using System.Buffers;
208
+
209
+
namespace Example
210
+
{
211
+
public interface IMessageReader
212
+
{
213
+
bool TryParseMessage(in byte input);
214
+
}
215
+
}
216
+
"""
217
+
letfs=
218
+
"""
219
+
module Module1
220
+
221
+
open Example
222
+
223
+
type MyClass() =
224
+
225
+
interface IMessageReader with
226
+
member this.TryParseMessage(input: inref<byte>): bool =
0 commit comments