This website requires JavaScript.
Explore
Help
Sign In
idris-lang
/
Idris2
Watch
1
Star
1
Fork
0
You've already forked Idris2
mirror of
https://github.com/idris-lang/Idris2.git
synced
2024-12-13 17:25:29 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
78ff2059f3
Idris2
/
tests
/
idris2
/
reg041
/
tuple.idr
6 lines
85 B
Idris
Raw
Normal View
History
Unescape
Escape
Only fully normalise fromInteger on LHS This reduces surprising undefined name errors on the RHS, as noted in issue #1541
2021-06-12 16:23:25 +03:00
tupleBug
:
Pair
()
a
->
()
Check LHS arguments are polymorphic enough We already did this, but missed a few cases due to the way arguments are elaborated. So now, when checking an LHS, we don't allow LHS argument types to be inferred from the pattern, but rather they must be inferred from elsewhere. To do this, we keep track of the constraints which would be solved when inferring the type, and make sure they don't solve any new metavariables. Fixes #1510, and also now gets the error location right as a bonus!
2021-06-13 15:31:40 +03:00
tupleBug
(
_
,
(
_
,
_
))
=
()
Only fully normalise fromInteger on LHS This reduces surprising undefined name errors on the RHS, as noted in issue #1541
2021-06-12 16:23:25 +03:00
odd
:
a
->
Bool
odd
()
=
False
Reference in New Issue
Copy Permalink