hhvm / user-documentation

Documentation for those that use HHVM and write Hack code.
http://docs.hhvm.com/
Other
129 stars 159 forks source link

Outdated type aliases doc after banning of partially abstract type constants #1324

Open lucasturci opened 1 year ago

lucasturci commented 1 year ago

Please complete the information below:

Where is the problem?

The last code block, where an example of the "as" constraint is given.

What is the problem?

It gives an invalid example. If I write it, my hack linter says: "as constraints are only legal on abstract type constants".


Please don't change anything below this point.


Wilfred commented 1 year ago

D42821059