implicit conversion from number to string
Not yet implemented
Env
concat : String -> String -> String
Source
concat 10 "Hello"
Inferred
String (IF implicit Number → String conversion were allowed)
NOT YET IMPLEMENTED: implicit conversions. Today this fails with "Can't unify Number and String". Kept as an ignored test to mark the intended behavior.
F# test body
X.App (X.App (X.Var "concat") (X.Lit 10)) (X.Lit "Hello")
|> solve typeHierarchyEnv None
|> shouldSolveType (Mono BuiltinTypes.string)