diff --git a/simulator/src/chip/builder.ts b/simulator/src/chip/builder.ts index 8c14e4b5b..e93afefb9 100644 --- a/simulator/src/chip/builder.ts +++ b/simulator/src/chip/builder.ts @@ -157,6 +157,12 @@ export async function build( firstUse: rhs.span, }); } else { + if (pinData.isDefined) { + return Err({ + message: `Internal pin ${rhs.pin} already defined`, + span: rhs.span, + }); + } pinData.isDefined = true; } }