Aer/tests/overloading_methods.aer
belliash ff73690111
Some checks reported errors
The build has failed.
Update tests to follow new syntax.
2019-03-17 19:48:52 +01:00

17 lines
274 B
Plaintext

class Program {
void count(int $a, int $b) {
print("Counting 2 integers: $a + $b = ", $a + $b, "\n");
}
void count(float $a, float $b) {
print("Counting 2 floats: $a + $b = ", $a + $b, "\n");
}
void main() {
$this->count(4.3, 5.7);
$this->count(6, 4);
}
}