Skip to content
Snippets Groups Projects
Commit 930b2ec0 authored by Christopher Willis-Ford's avatar Christopher Willis-Ford
Browse files

setOutput takes a Boolean, not a type

parent c9d15359
Branches
Tags
No related merge requests found
...@@ -49,14 +49,14 @@ const defineDynamicBlock = (ScratchBlocks, categoryInfo, staticBlockInfo, extend ...@@ -49,14 +49,14 @@ const defineDynamicBlock = (ScratchBlocks, categoryInfo, staticBlockInfo, extend
this.setNextStatement(!blockInfo.isTerminal); this.setNextStatement(!blockInfo.isTerminal);
break; break;
case BlockType.REPORTER: case BlockType.REPORTER:
this.setOutput('String'); // TODO: distinguish number & string here? this.setOutput(true);
this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_ROUND); this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_ROUND);
if (!blockInfo.disableMonitor) { if (!blockInfo.disableMonitor) {
this.setCheckboxInFlyout(true); this.setCheckboxInFlyout(true);
} }
break; break;
case BlockType.BOOLEAN: case BlockType.BOOLEAN:
this.setOutput('Boolean'); this.setOutput(true);
this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_HEXAGONAL); this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_HEXAGONAL);
break; break;
case BlockType.HAT: case BlockType.HAT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment