Typehinting merge #50

Samengevoegd
belliash heeft 298 commits samengevoegd van typehinting naar master 2019-04-17 11:27:52 +02:00
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
Showing only changes of commit 8aacf7c70e - Show all commits

Bestand weergeven

@@ -700,7 +700,7 @@ static sxi32 ExprExtractNode(ph7_gen_state *pGen, ph7_expr_node **ppNode) {
} }
} }
} }
} else if(nKeyword == PH7_KEYWORD_FUNCTION) { } else if(pCur[1].nType & PH7_TK_LPAREN && (nKeyword & PH7_KEYWORD_TYPEDEF)) {
/* Anonymous function */ /* Anonymous function */
if(&pCur[1] >= pGen->pEnd) { if(&pCur[1] >= pGen->pEnd) {
/* Assume a literal */ /* Assume a literal */

Bestand weergeven

@@ -1,7 +1,7 @@
class Program { class Program {
function main(string[] $args) { function main(string[] $args) {
callback $y = function() { callback $y = void() {
callback $a = 'printf'; callback $a = 'printf';
$a("I'm alive\n"); $a("I'm alive\n");
var_dump($a); var_dump($a);