Expansion requires all possible objects to have been declared #29
Labels
expansion
any expansion mechanism
feature
New feature or request
syntax/language
Concerns the language or its syntax
Context
We can declare two objects like that:
And then use the following mappings in expansions:
So that we can expand
Obj:T:Tbar
with tag class parameterT
to match our two objects.Problem
The expansion code currently requires to have declared all four possible objects
Obj:T:T
, i.e.Obj:A:A
,Obj:A:B
,Obj:B:A
, andObj:B:B
.Solution
Checking the validity of a mapping-allowed identifier should use the expansion mechanism to check that all expansions lead to a valid expanded identifier. But this might be a complex modification of the code in identifiers.js.
The text was updated successfully, but these errors were encountered: