Handle qualified constructors in patterns
This commit is contained in:
@@ -161,7 +161,8 @@ compilable_contracts() ->
|
||||
"list_comp",
|
||||
"payable",
|
||||
"unapplied_builtins",
|
||||
"underscore_number_literals"
|
||||
"underscore_number_literals",
|
||||
"qualified_constructor"
|
||||
].
|
||||
|
||||
not_yet_compilable(fate) -> [];
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Foo =
|
||||
datatype x = A | B(int)
|
||||
|
||||
contract Bar =
|
||||
entrypoint f(a : Foo.x) =
|
||||
switch(a)
|
||||
Foo.A => 0
|
||||
Foo.B(n) => n
|
||||
Reference in New Issue
Block a user