Commit 1a2d78ea authored by Kenton Varda's avatar Kenton Varda

Detect and disallow List(Inline(Bool, n)) as it is not currently implemented…

Detect and disallow List(Inline(Bool, n)) as it is not currently implemented correctly (and may be difficult to implement correctly-yet-efficiencly).
parent 5f1bd21b
......@@ -311,6 +311,8 @@ compileType scope (TypeExpression n params) = do
InlineStructType _ -> makeError (declNamePos n)
"Don't declare list elements 'Inline'. The regular encoding for struct \
\lists already inlines the elements."
InlineListType (BuiltinType BuiltinBool) _ -> makeError (declNamePos n)
"List(InlineList(Bool, n)) not supported due to implementation difficulty."
_ -> return (ListType inner)
_ -> makeError (declNamePos n) "'List' requires exactly one type parameter."
DescBuiltinInline -> case params of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment