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
If possible, please include complete self contained source files (for example by uploading to https://gist.github.com) that exhibit the issue in addition to quoting from them here. The smaller the example the better!
Steps to Reproduce
Check
f : a -> b
f a' =
let x : a
x = a'
y = 1
in ?xyz
g : a -> b
g a' =
let x : a
x = a'
y : Int
y = 1
in ?xyz
Expected Behavior
Type checks fine
Observed Behavior
Errors (1)
Test.idr:217:9
While processing right hand side of f at Test.idr:214:1--220:1:
No type declaration for Test.y
It can be 'fixed' by having a separate let block for things with type annotations and things without. If this is expected behaviour then:
I couldn't find any documentation about it
I found it very unintuitive. Indeed it took me a while to work out that I could have an additional block with the unannotated items
The text was updated successfully, but these errors were encountered:
If possible, please include complete self contained source files (for example by uploading to https://gist.github.com) that exhibit the issue in addition to quoting from them here. The smaller the example the better!
Steps to Reproduce
Check
Expected Behavior
Type checks fine
Observed Behavior
It can be 'fixed' by having a separate let block for things with type annotations and things without. If this is expected behaviour then:
The text was updated successfully, but these errors were encountered: