-
Notifications
You must be signed in to change notification settings - Fork 348
Open
Labels
TriageRequires triage/attentionRequires triage/attention
Description
I have two examples. Example 1:
#Inherit: {
#parent: _
for k, v in #parent {
if (v & {...}) != _|_ {
(k): #Inherit & { #parent: v }
}
if (v & {...}) == _|_ {
(k): *v | _
}
}
...
}
#layer1: {
depth_1: {
depth_2: {}
}
}
layer_2: #Inherit & {
#parent: #layer1
}
Example 2:
#Inherit: {
#parent: _
for k, v in #parent {
if (v & {...}) != _|_ {
(k): #Inherit & { #parent: v }
}
if (v & {...}) == _|_ {
(k): *v | _
}
}
...
}
#layer1: {
depth_1: {
depth_2: {
depth_3: {}
}
}
}
layer_2: #Inherit & {
#parent: #layer1
}
Example 1 works as expected but example 2 gives error:
layer_2.depth_1.depth_2.depth_3: structural cycle
Is this a bug or a feature? Is too much recursion not allowed in a for loop? I know this is not the intended way to use cue but I am trying something. Please let me know or educate me!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TriageRequires triage/attentionRequires triage/attention