Almost have it working, but member function lookup through a typedef doesn't quite work. (I think the problem's in CGenerator)

This commit is contained in:
Nathan Braswell
2014-06-10 00:53:30 -07:00
parent 366bbb6432
commit 7dbfd8ca38
6 changed files with 39 additions and 25 deletions

View File

@@ -1 +1 @@
345Hello!Hello!Hello!
45Hello!Hello!Hello!

View File

@@ -2,7 +2,7 @@ import io;
import trivial_container;
typedef RegularObject {
MyInt num;
int num;
trivialContainer<char*> innerContainer;
void set(char* message, int number) {
innerContainer.data = message;
@@ -18,8 +18,6 @@ typedef RegularObject {
};
typedef MyIntContainer trivialContainer<int>;
typedef MyInt int;
MyInt c;
MyIntContainer roundabout;
RegularObject outsideDec;
@@ -28,14 +26,12 @@ void print(trivialContainer<char*> toPrint) {
}
int main() {
c = 3;
roundabout.data = 4;
outsideDec.set("Hello!", 5);
print(c);
roundabout.print();
outsideDec.print();
print(outsideDec.get());
print(outsideDec.innerContainer);
print("\n");
return 0;
}
}