Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 37330b7

Browse files
committed
Set and ImmSet need arraykeys; today's nightly picks this up
1 parent fcd9edb commit 37330b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/key-value-render/HackBuilderValues.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ abstract final class HackBuilderValues {
101101
}
102102

103103
/** Render a `Set` literal */
104-
public static function set<Tv>(
104+
public static function set<Tv as arraykey>(
105105
IHackBuilderValueRenderer<Tv> $vr,
106106
): IHackBuilderValueRenderer<Set<Tv>> {
107107
return new _Private\HackBuilderNativeValueCollectionRenderer(
@@ -111,7 +111,7 @@ abstract final class HackBuilderValues {
111111
}
112112

113113
/** Render an `ImmSet` literal */
114-
public static function immSet<Tv>(
114+
public static function immSet<Tv as arraykey>(
115115
IHackBuilderValueRenderer<Tv> $vr,
116116
): IHackBuilderValueRenderer<ImmSet<Tv>> {
117117
return new _Private\HackBuilderNativeValueCollectionRenderer(

0 commit comments

Comments
 (0)