Add support for fully inline functions in methodmaps.

This commit is contained in:
David Anderson
2014-06-22 13:21:46 -07:00
parent 90e8607586
commit 354022888f
7 changed files with 285 additions and 209 deletions
@@ -0,0 +1,7 @@
methodmap ThisNameIsReallyLongWowItsVeryLong {
public ThisNameIsReallyLongWowItsVeryLong() {
}
}
public main() {
}
@@ -0,0 +1 @@
fully-qualified name "ThisNameIsReallyLongWowItsVeryLong.ThisNameIsReallyLongWowItsVeryLong" is too long, would be truncated to "ThisNameIsReallyLongWowItsVeryLong.ThisNameIsReallyLongWowItsVe"
@@ -0,0 +1,13 @@
methodmap Crab {
public Crab(n) {
return Crab:n;
}
public int Value() {
return _:this;
}
};
public main() {
new Crab:crab = Crab(5);
return crab.Value();
}