curimit / SugarCpp

SugarCpp is a language which can compile to C++11.
135 stars 13 forks source link

lambda function with parameter #17

Closed zxytim closed 11 years ago

zxytim commented 11 years ago
int main()
    f := (x) -> x * x;

should not compile to

int main() {
    auto f = (x)->x * x;
}

UPDATE: I am wrong.... parameter should specify type...