From 352ac0af6e2812411d92334967efa5e59d956a91 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Sun, 17 Sep 2023 14:44:05 -0700 Subject: [PATCH] Conflict on self-referential bind. --- src/nodes/Reference.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/nodes/Reference.ts b/src/nodes/Reference.ts index df42b668a..cdc1f2eb8 100644 --- a/src/nodes/Reference.ts +++ b/src/nodes/Reference.ts @@ -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'; @@ -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