Idris2-boot/tests/idris2/perf002/Big.idr
Edwin Brady e95c5f7571 Remove unnecessary check from let elaboration
Checking the let expression in full can break sharing when unifying the
types, and it's unnecessary because we've already checked the type of
the scope unifies with the expected type.
Fixes #63
2019-07-31 10:10:47 +01:00

36 lines
695 B
Idris

import Data.Vect
test : Vect 2 () -> IO ()
test b =
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
let i = index 1 b in
pure ()
main : IO ()
main = do
pure ()