Patch to get static's working in esc.

RESOLVED FIXED

Status

Tamarin
Self-hosting compiler (ESC)
RESOLVED FIXED
11 years ago
10 years ago

People

(Reporter: Erik Tierney, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
Created attachment 287884 [details] [diff] [review]
implement support for statics

Add support for statics in esc.  Changed parser to put static fixtures in the right place (they were getting put into the instance fixtures) and change cogen to actually evaluate the class fixtures.
Attachment #287884 - Flags: review?(jodyer)

Comment 1

11 years ago
Comment on attachment 287884 [details] [diff] [review]
implement support for statics

looks pretty straightforward.
Attachment #287884 - Flags: review?(jodyer) → review+

Comment 2

11 years ago
Static functions are not working:
public class Test {
	public static function bar():void{
		print("here");
	}
}
Test.bar();

TypeError: Error #1006: bar is not a function.
        at global$init()
(Reporter)

Comment 3

11 years ago
pushed a simple fix - just forgot to make the same change to function definitions that I made to variable definitions.

Comment 4

10 years ago
Long since fixed.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.