diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/TEnumSet.java b/classlib/src/main/java/org/teavm/classlib/java/util/TEnumSet.java index 13a7700de..e30476767 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/util/TEnumSet.java +++ b/classlib/src/main/java/org/teavm/classlib/java/util/TEnumSet.java @@ -113,6 +113,7 @@ public abstract class TEnumSet> extends AbstractSet impleme @SafeVarargs public static > TEnumSet of(E first, E... rest) { TEnumSet result = TEnumSet.noneOf(first.getDeclaringClass()); + result.fastAdd(first); for (E e : rest) { result.fastAdd(e); }