Oldify deferred defs before phase2 redeclaration
commit5f5adc98f2f65717cbcada56977103c87fd475eb
authorKasper Kopec <kasper@fb.com>
Mon, 7 Nov 2016 22:16:51 +0000 (7 14:16 -0800)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Mon, 7 Nov 2016 22:29:22 +0000 (7 14:29 -0800)
tree6b92cdc0581d1331523a9ab582515ed375821124
parent06ef7568766522ae79fa8b13245ffe2027284258
Oldify deferred defs before phase2 redeclaration

Summary: Switching the order from "redecl and oldify" to "oldify and redecl" - this is needed because the redecl might depend on some of the definitions we want to oldify, and if we don;t do it first, it will use outdated version. Since the redecl can now process some of the oldified things, we also need to update how we track what is oldified (needs_phase2_redecl).

Reviewed By: jopamer

Differential Revision: D4129052

fbshipit-source-id: a8818c10ef7636cdfc1e6b0178637cdca26589bf
hphp/hack/src/server/serverTypeCheck.ml
hphp/hack/test/integration_ml/ide/test_override.ml [new file with mode: 0644]