Fixed up testing etc
This commit is contained in:
13
tests/test_functionTemplateTest.krak
Normal file
13
tests/test_functionTemplateTest.krak
Normal file
@@ -0,0 +1,13 @@
|
||||
import io;
|
||||
|
||||
template <T> |T| addAndPrint(|T| a, |T| b) {
|
||||
io::print(a+b);
|
||||
return a+b;
|
||||
}
|
||||
|
||||
|int| main() {
|
||||
addAndPrint<int>(10,12);
|
||||
io::print("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user