Open
Description
Describe and demonstrate the bug
ability Deprecated where
wrap: '{g} a -> {Deprecated} a
Deprecated.warn p = handle p() with cases
{ k } -> k
{ wrap fn -> k } ->
Debug.trace "WARNING: This function is deprecated." ()
res = fn()
go do k res
When I save the scratch file, I get an error:
deprecated/main>
Loading changes detected in ~/Documents/workspace/unison-code/oauth2.u.
Sorry, you hit an error we didn't make a nice message for yet.
Here is a summary of the Note:
simple cause:
TypeMismatch
context:
Γ
|start1|
|𝕩2|
'User "p"-4
'Inference Ability-5
'Inference Output-6
p3 : p4
'Inference PatternPureV-17
'Inference Ability-20
'𝕖21 = Deprecated
'𝕦19 = 𝕖20, Deprecated
'𝕗18 = Request
'𝕗16 = Request {𝕖20, Deprecated}
'gs589pqna818 = Request {𝕖20, Deprecated} 𝕧17
'Inference Ability-60
'User "g"-61
'𝕖9 = 𝕖60, g61
'𝕣10 = 𝕧17
gs589pqna817 : Request {𝕖20, Deprecated} 𝕧17
'User "a"-11
'User "g"-12
'𝕖14 = 𝕖20
'𝕧13 = 𝕧17
'Inference Ability-15
'User "a"-58
'User "g"-59
ucm --version
release/0.5.39- OS/Architecture: macOS 15.0.1 silicon
Additional context
This shows up sometimes but I'm not sure I've been able to share such a simple example before. This is done immediately after project.create
with only base
as a dependency.