mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix generic example
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
199ef30e0c
commit
f7691d34fd
|
@ -1366,10 +1366,10 @@ class JavaGenericExample
|
||||||
System.out.println("EnumExample");
|
System.out.println("EnumExample");
|
||||||
Log.append("EnumExample");
|
Log.append("EnumExample");
|
||||||
|
|
||||||
Symbol name = ctx.mkSymbol("fruit");
|
Symbol name = ctx.mkSymbol("fruit2");
|
||||||
|
|
||||||
EnumSort<Object> fruit = ctx.mkEnumSort(name, ctx.mkSymbol("apple"),
|
EnumSort<Object> fruit = ctx.mkEnumSort(name, ctx.mkSymbol("apple2"),
|
||||||
ctx.mkSymbol("banana"), ctx.mkSymbol("orange"));
|
ctx.mkSymbol("banana2"), ctx.mkSymbol("orange2"));
|
||||||
|
|
||||||
System.out.println((fruit.getConsts()[0]));
|
System.out.println((fruit.getConsts()[0]));
|
||||||
System.out.println((fruit.getConsts()[1]));
|
System.out.println((fruit.getConsts()[1]));
|
||||||
|
|
Loading…
Reference in a new issue