diff options
Diffstat (limited to 'tiger-compiler/tests/object/good/simple-class.tig')
| -rwxr-xr-x | tiger-compiler/tests/object/good/simple-class.tig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tiger-compiler/tests/object/good/simple-class.tig b/tiger-compiler/tests/object/good/simple-class.tig new file mode 100755 index 0000000..ce530a2 --- /dev/null +++ b/tiger-compiler/tests/object/good/simple-class.tig @@ -0,0 +1,10 @@ +let
+ class B
+ {
+ var a := 42
+ method m() : int = self.a
+ }
+ var b := new B
+in
+ b.a := 51
+end
\ No newline at end of file |
