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