finish the field access

now that fields can be defined
This commit is contained in:
Torsten Ruger
2015-09-27 12:59:50 +03:00
parent 964abe1e32
commit 5a2a857485
3 changed files with 8 additions and 7 deletions

View File

@ -2,3 +2,4 @@ require_relative "test_basic"
require_relative "test_methods"
require_relative "test_hello"
require_relative "test_compiler"
require_relative "test_field_access"

View File

@ -7,13 +7,13 @@ module Virtual
def test_foo2
@string_input = <<HERE
int a
field int a
int foo(int x)
int b = self.a
return b +x
end
HERE
@expect = [ Virtual::Return ]
@output = [ [Virtual::MethodEnter] , [Virtual::MethodReturn] ]
check
end