3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-04 08:39:57 +00:00

fix generic example

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2024-02-21 08:16:01 -08:00
parent 199ef30e0c
commit f7691d34fd

View file

@ -1366,10 +1366,10 @@ class JavaGenericExample
System.out.println("EnumExample");
Log.append("EnumExample");
Symbol name = ctx.mkSymbol("fruit");
Symbol name = ctx.mkSymbol("fruit2");
EnumSort<Object> fruit = ctx.mkEnumSort(name, ctx.mkSymbol("apple"),
ctx.mkSymbol("banana"), ctx.mkSymbol("orange"));
EnumSort<Object> fruit = ctx.mkEnumSort(name, ctx.mkSymbol("apple2"),
ctx.mkSymbol("banana2"), ctx.mkSymbol("orange2"));
System.out.println((fruit.getConsts()[0]));
System.out.println((fruit.getConsts()[1]));