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
extern int M1(int)extern int M2(int i)extern int M3([<A>] int i)extern int M4(int[] i)extern int M5(int* i)extern int M5(int& i)extern int M5(void* i)extern int M6(void* i1,void* i2)
Error
Fantomas was able to format the code but the result appears to be invalid F# code.
Please openan issue.
Formatted result:letM1 _:int:int =
failwith "extern was not given a DllImport attribute"letM2 i:int:int =
failwith "extern was not given a DllImport attribute"letM3[<A>]i:int:int =
failwith "extern was not given a DllImport attribute"letM4 i:int ``[]``:int =
failwith "extern was not given a DllImport attribute"letM5 i:int nativeptr:int =
failwith "extern was not given a DllImport attribute"letM5 i:int byref:int =
failwith "extern was not given a DllImport attribute"letM5 i:nativeint:int =
failwith "extern was not given a DllImport attribute"letM6 i1:nativeint,i2:nativeint:int =
failwith "extern was not given a DllImport attribute"
Issue created from fantomas-online
Code
Error
Related parser rules:
https://github.com/dotnet/fsharp/blob/05b0569a7d6acefd21ad31bce49f780d961db651/src/fsharp/pars.fsy#L2654
The text was updated successfully, but these errors were encountered: