[concepts] using a parameter : SomeConcept
gives: Error: object constructor needs an object type
#9071
Labels
parameter : SomeConcept
gives: Error: object constructor needs an object type
#9071
a parameter typed by a concept (
parameter : SomeConcept
) used in a routine body can giveError: object constructor needs an object type
, see below (with -d:case1); the workaround (-d:case3) is not DRY, and prevents UFCS; in more complex cases (as in my original use case from which this was reduced), explicitly instantiating the types ininitMyseq
can be tricky.This was reduced from a more complex example in a tensor library.
I could've reduced a bit more but wanted to show a bit where it came from.
The text was updated successfully, but these errors were encountered: