Implemented ultra-basic/incomplete function template instantiation type inference for Kalypso that just assigns the param type to the concat'd string right away which works in the most basic of cases. Will expand to cover pointers soon, and the rest when those features are implemented (object templates, function types)

This commit is contained in:
Nathan Braswell
2016-02-09 04:16:03 -05:00
parent 2ac1639b5e
commit f70aed9589
3 changed files with 34 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ fun return_something_p_1(it: Something): Something {
return it
}
*/
fun id<T>(in: *T): *T return in;
/*fun id<T>(in: *T): *T return in;*/
fun id<T>(in: T): T return in;
fun other_id<T>(in: T): T {
var a: T