fabriquer / fabrique

A build description language
Other
3 stars 1 forks source link

Fix field query list types #37

Closed trombonehero closed 5 years ago

trombonehero commented 9 years ago

When we use a field query to set a list, e.g.:

vendor_cxx_flags:list[string] = args.cxxflags ? [];

we currently get the error:

error: type error: expected list[nil], got list[string]
vendor_cxx_flags = args.cxxflags ? [];
                   ^~~~~~~~~~~~~~~~~~

We ought to use the expected type information to infer that the field (if it existed) would be a list[string].

trombonehero commented 9 years ago

This is blocking forward progress on the pegmatite branch.

trombonehero commented 5 years ago

This works in the new parsing and type model!