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
(Foo (MyType/A a)) = (MyType/A a)
(Foo (MyType/B b)) = (MyType/B b)
** main.bend**
from a import *
main = "hello world"
bend check main.bend
Errors:
In a :
In definition 'a/Foo':
Unbound constructor 'MyType/A' in pattern matching rule.
Unbound constructor 'MyType/B' in pattern matching rule.
Reproducing the behavior
From @NoamDev at #722 (comment)
** a.bend **
type MyType:
A {data: u24}
B {data: u24}
Foo: MyType -> MyType
(Foo (MyType/A a)) = (MyType/A a)
(Foo (MyType/B b)) = (MyType/B b)
** main.bend**
from a import *
main = "hello world"
System Settings
Bend commit 53d5262
Additional context
No response
The text was updated successfully, but these errors were encountered: