Skip to content

Commit

Permalink
Conflict on self-referential bind.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Sep 17, 2023
1 parent 0dac9ab commit 352ac0a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/nodes/Reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import type Locale from '@locale/Locale';
import SimpleExpression from './SimpleExpression';
import NameException from '@values/NameException';
import NodeRef from '@locale/NodeRef';
import Evaluate from './Evaluate';
import StreamDefinitionType from './StreamDefinitionType';
import Sym from './Sym';
import concretize, { type TemplateInput } from '../locale/concretize';
import Glyphs from '../lore/Glyphs';
Expand Down Expand Up @@ -225,13 +223,7 @@ export default class Reference extends SimpleExpression {
const reaction = context
.getRoot(this)
?.getAncestors(this)
?.find(
(n) =>
n instanceof Reaction ||
(n instanceof Evaluate &&
n.fun.getType(context) instanceof
StreamDefinitionType)
);
?.find((n) => n instanceof Reaction);
const validCircularReference =
reaction !== undefined &&
context
Expand Down

0 comments on commit 352ac0a

Please sign in to comment.