lean4-htt/tests
Leonardo de Moura 06ad52575a feat: force users to use discard when action result is not being bound and it is not PUnit
After this commit, we have to use an explicit `discard` in code such as
```
def g (x : Nat) : IO Nat := ...
def f (x : Nat) : IO Unit := do
  discard <| g x   -- type error without the `discard`
  IO.println x
```

Motivation: prevent users from making mistakes such as
```
def f (xs : Array Nat) : IO Unit := do
  xs.set! 0 1
  IO.println xs
```
when they meant to write
```
def f (xs : Array Nat) : IO Unit := do
  let xs := xs.set! 0 1
  IO.println xs
```
2020-12-08 06:14:48 -08:00
..
bench refactor: heterogeneous operators 2020-12-01 14:02:46 -08:00
compiler feat: force users to use discard when action result is not being bound and it is not PUnit 2020-12-08 06:14:48 -08:00
elabissues chore: avoid Has prefix in type classes 2020-10-27 18:29:19 -07:00
ir chore(tests): fix do syntax in tests 2019-06-30 13:04:34 +02:00
lean feat: force users to use discard when action result is not being bound and it is not PUnit 2020-12-08 06:14:48 -08:00
playground test: add nondet example 2020-10-29 16:33:40 -07:00
plugin feat: run linters in the new frontend 2020-10-23 14:04:28 -07:00
.gitignore chore: move bin/ and .oleans into build directory 2020-05-14 14:47:54 +02:00
common.sh test: ignore \r when diffing 2020-09-15 09:32:00 -07:00