Skip to content

Commit

Permalink
fix generic example
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Feb 21, 2024
1 parent 199ef30 commit f7691d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/java/JavaGenericExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -1366,10 +1366,10 @@ public void enumExampleUntyped(Context ctx) throws TestFailedException
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]));
Expand Down

0 comments on commit f7691d3

Please sign in to comment.