You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let foo =funinput0input1input2input3input4input5input6input7input8input9input10 ->
let latestValue =funi -> Some0.0inmatch (latestValue input0, latestValue input1, latestValue input2, latestValue input3, latestValue input4, latestValue input5, latestValue input6, latestValue input7, latestValue input8, latestValue input9, latestValue input10, latestValue input0) with {
| (Some x0, Some x1, Some x2, Some x3, Some x4, Some x5, Some x6, Some x7, Some x8, Some x9, Some x10) ->
Some (truncateTo 2 (x0 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9 + x10))
|_ -> None }
in foo 00000000000
This script results in:
inferno: Prelude.undefined
CallStack (from HasCallStack):
error, called at libraries/base/GHC/Err.hs:74:14 in base:GHC.Err
undefined, called at src/Inferno/Infer/Error.hs:75:12 in inferno-core-0.3.1-inplace:Inferno.Infer.Error
This only happens when you try to match a 11-tuple with a 12-tuple. For smaller numbers you get the correct type error.
This script results in:
This only happens when you try to match a 11-tuple with a 12-tuple. For smaller numbers you get the correct type error.
Here's a script to generate such examples:
The text was updated successfully, but these errors were encountered: