Type inference for recursive let...in... working. Update factorial example.
This commit is contained in:
parent
d000839878
commit
2279c54229
5 changed files with 62 additions and 27 deletions
|
|
@ -33,7 +33,6 @@ export function LetInBlock(props: LetInBlockProps) {
|
|||
}
|
||||
|
||||
function DeclColumns({state, setState, score, typeInfo}) {
|
||||
const env = useContext(EnvContext);
|
||||
const globalContext = useContext(GlobalContext);
|
||||
|
||||
const setInner = callback => setState(state => ({...state, inner: callback(state.inner)}));
|
||||
|
|
@ -78,7 +77,6 @@ function DeclColumns({state, setState, score, typeInfo}) {
|
|||
}
|
||||
|
||||
function InnerMost({state, setState, score, typeInfo}) {
|
||||
const env = useContext(EnvContext);
|
||||
const globalContext = useContext(GlobalContext);
|
||||
const setInner = callback => setState(state => ({...state, inner: callback(state.inner)}));
|
||||
const onCancel = () => setState(state => state.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue