От: | hardcase | http://nemerle.org | |
Дата: | 18.05.10 09:09 | ||
Оценка: |
def f(x : int) {
x + 1
}
and f(s : string) {
s + "1"
}
WriteLine(f(1)); // Error: needed a string, got int
WriteLine(f("1"));