facebookarchive / hack-langspec

The official Hack Language specification.
http://hacklang.org
Other
172 stars 48 forks source link

Restriction on contents of abstract final classes needs description #98

Open ericlippert opened 7 years ago

ericlippert commented 7 years ago

Chapter 16 correctly notes the rules for abstract classes and final classes, but does not state anywhere the rule that a class which is both abstract and final may only declare static methods and properties. Since the class cannot be instantiated, it is pointless to declare an instance method or property; it would never be used.