projects
/
rune.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Rune - Stabilization pass
[rune.git]
/
tests
/
overload.d
1
#!/usr/local/bin/rune
2
#
3
# should fail, this style of overloading is not currently implemented.
4
5
import "sys" as self;
6
import "stdio";
7
8
int
9
main(int ac, char **av)
10
{
11
fubar("hello");
12
fubar(23);
13
}
14
15
void
16
fubar(const char *str)
17
{
18
stdio.stdout->show("string", str);
19
}
20
21
void
22
fubar(int v)
23
{
24
stdio.stdout->show("value", v);
25
}