Wooo! Fixed up remaining bugs in new syntax!
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import io;
|
||||
|
||||
|
||||
typedef template <T,J> TemplateTest {
|
||||
|T| a;
|
||||
|J| b;
|
||||
|void| print() {
|
||||
typedef TemplateTest<T,J> {
|
||||
var a: T;
|
||||
var b: J;
|
||||
fun print(): void {
|
||||
io::print("a: ");
|
||||
io::print(a);
|
||||
io::print("\n");
|
||||
@@ -14,10 +14,10 @@ typedef template <T,J> TemplateTest {
|
||||
}
|
||||
};
|
||||
|
||||
|int| main() {
|
||||
fun main(): int {
|
||||
|
||||
|TemplateTest<int, char*>| test;
|
||||
|TemplateTest<char*, char*>| test2;
|
||||
var test: TemplateTest<int, char*>;
|
||||
var test2: TemplateTest<char*, char*>;
|
||||
test.a = 24;
|
||||
test.b = "Hello World";
|
||||
test2.a = "Pi incoming";
|
||||
|
||||
Reference in New Issue
Block a user