Fix a couple of include tests in repo mode

One just needed to have the file included in the repo.
One was getting the wrong return value (true vs 1).
Esse commit está contido em:
Mark Williams
2013-04-19 12:11:00 -07:00
commit de Sara Golemon
commit a988bdb73e
2 arquivos alterados com 7 adições e 1 exclusões
+2 -1
Ver Arquivo
@@ -549,7 +549,8 @@ void MethodStatement::inferFunctionTypes(AnalysisResultPtr ar) {
}
if (!lastIsReturn) {
ExpressionPtr constant =
makeConstant(ar, funcScope->inPseudoMain() ? "true" : "null");
makeScalarExpression(ar, funcScope->inPseudoMain() ?
Variant(1) : Variant(Variant::nullInit));
ReturnStatementPtr returnStmt =
ReturnStatementPtr(
new ReturnStatement(getScope(), getLocation(), constant));
+5
Ver Arquivo
@@ -19,3 +19,8 @@ require $path;
$path = __DIR__ . '/include.3.inc';
require $path;
if (0) {
// to ensure we include the file in
// RepoAuthoritative mode
require 'include.3.inc';
}