mirror of
https://github.com/AdaCore/z3.git
synced 2026-02-12 12:40:40 -08:00
fix generic example
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user