2 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3 <<file
: __EnableUnstableFeatures('enum_class')>>
7 class Box
<T
> implements ExBox
{
8 public function __construct(public T
$data) {}
11 // only types without free parameters are allowed
12 enum
class E
: Box
<T
> {
13 A
<Box
<string>>(new Box('zuck'));