Add position where instantiable type is used
commit3cdc99b603adf88bc9fc5cef105bef8f2aaa4f23
authorAlexander Chow <achow@fb.com>
Wed, 23 Sep 2015 21:46:11 +0000 (23 14:46 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Thu, 24 Sep 2015 16:39:01 +0000 (24 09:39 -0700)
tree12c8db43ab48ddbabc1bef11575f8ae5709ac754
parent47336f15533f49dc86bad0d0577304a4bc753e8d
Add position where instantiable type is used

Summary: It was hard to find what line was causing a class to be instantiable
in www. This improves error messaging.

Reviewed By: @int3

Differential Revision: D2463521
hphp/hack/src/typing/typing.ml
hphp/hack/src/typing/typing_hint.ml
hphp/hack/src/utils/errors.ml
hphp/hack/src/utils/errors.mli
hphp/hack/test/typecheck/classname/new_abstract_final.php.exp
hphp/hack/test/typecheck/classname/new_trait.php.exp
hphp/hack/test/typecheck/instanceof_this_in_trait.php [new file with mode: 0644]
hphp/hack/test/typecheck/instanceof_this_in_trait.php.exp [new file with mode: 0644]