This website works better with JavaScript.
Home
Help
Register
Sign In
AerScript
/
Aer
Watch
0
Star
6
Fork
0
Code
Issues
6
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Test for implicitly typed declarations.
release/v0.1
Rafal Kupiec
1 year ago
parent
ace4d56d7f
commit
fffce10ba8
Signed by:
belliash
GPG Key ID:
4E829243E0CFE6B4
2 changed files
with
32 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+23
-0
tests/implicitly_typed_declarations.aer
+9
-0
tests/implicitly_typed_declarations.exp
+ 23
- 0
tests/implicitly_typed_declarations.aer
View File
@ -0,0 +1,23 @@
class Test {
}
class Program {
public void test() {
static auto $r = 3;
$r++;
var_dump($r);
}
public void main() {
auto $a = 'test string';
auto $b = new Test();
auto $c = 6.5;
auto $d = true;
auto $e = NULL;
for(auto $i = 0; $i < 3; $i++) {
$this->test();
}
var_dump($a, $b, $c, $d, $e);
}
}
+ 9
- 0
tests/implicitly_typed_declarations.exp
View File
@ -0,0 +1,9 @@
int(4)
int(5)
int(6)
string(11 'test string')
object(Test) {
}
float(6.5)
bool(TRUE)
void(NULL)
Write
Preview
Loading…
Cancel
Save