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
Compilation failed.
(22,8)-(22,13) The type referenced through 'System.Globalization.CultureInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Globalization'.
printfn "Hello, world!"letmul a b = a * b
leta=42letb=2letc= mul a b
printfn "%i * %i = %i" a b c
typeCalculation=| Literal ofint| Mul ofCalculation*Calculation| Plus ofCalculation*Calculation| Minus ofCalculation*Calculationlet receval calc =match calc with| Literal i -> i
| Mul(a,b)-> eval a * eval b
| Plus(a,b)-> eval a + eval b
| Minus(a,b)-> eval a - eval b
let recprint calc =match calc with| Literal i -> string i
| Mul(a,b)-> sprintf "(%s * %s)"(print a)(print b)| Plus(a,b)-> sprintf "(%s + %s)"(print a)(print b)| Minus(a,b)-> sprintf "(%s - %s)"(print a)(print b)letcalc= Mul(Minus(Plus(Literal 42, Literal 2), Literal 1), Literal 3)
printfn "eval %A = %i"(print calc)(eval calc)
The text was updated successfully, but these errors were encountered:
openSystemletmissing=
TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
Compilation succeeded.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TimeZoneNotFoundException: Couldn't read time zone file /usr/share/zoneinfo/Central Standard Time ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "/usr/share/zoneinfo/Central Standard Time".
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) <0x3922820 + 0x00258> in <b63d6248980146f38423574ef06785b2>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) <0x395bdb0 + 0x00032> in <b63d6248980146f38423574ef06785b2>:0
at System.IO.File.OpenRead (System.String path) <0x395bd70 + 0x0000e> in <b63d6248980146f38423574ef06785b2>:0
at System.TimeZoneInfo.FindSystemTimeZoneByFileName (System.String id, System.String filepath) <0x395bbd8 + 0x00014> in <b63d6248980146f38423574ef06785b2>:0
--- End of inner exception stack trace ---
The following code brings the compiler error:
The text was updated successfully, but these errors were encountered: