mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
assertion bug fix in z3py
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
756645326b
commit
1e774064bc
|
@ -4147,7 +4147,7 @@ class Datatype:
|
|||
"""
|
||||
if __debug__:
|
||||
_z3_assert(isinstance(name, str), "String expected")
|
||||
_z3_assert(name != "")
|
||||
_z3_assert(name != "", "Constructor name cannot be empty")
|
||||
return self.declare_core(name, "is_" + name, *args)
|
||||
|
||||
def __repr__(self):
|
||||
|
|
Loading…
Reference in a new issue