Typehinting merge #50

Merged
belliash merged 298 commits from typehinting into master 2019-04-17 11:27:52 +02:00
2 changed files with 20 additions and 0 deletions
Showing only changes of commit cfc0342a10 - Show all commits

View File

@ -0,0 +1,17 @@
class Program {
string[] testArray() {
return {'Machine' => 'Turing'};
}
callback[] testCallback() {
return {'callme' => void() { print("Hello world\n"); }};
}
void main() {
print($this->testArray()['Machine'] + "\n");
$this->testCallback()['callme']();
print(true ? "TRUE\n" : false ? "true\n" : "false\n");
}
}

View File

@ -0,0 +1,3 @@
Turing
Hello world
TRUE