blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Error when translating - "Mark TODO 4" #118

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: Ghouly-The-Ghost

I have a project that I made, in late 2017 when I was first learning Monkey2, and I wanted to let others have access to it. With the latest Monkey2 version it fails to build and there is no trace at all for me to diagnose myself.

This is all the console tells me:

Parsing...
Semanting...
Translating...
Build error: Mark TODO 4
Translate error: Mark TODO 4

You can get access to the repo through this invitation link: https://github.com/Ghouly-The-Ghost/FBMonkey2/invitations

There's not much code to look through... but if you know what the error indicates it would be much easier for me to just find what I need to change and then I can post the project quickly for others to learn from! Thanks!

Pharmhaus-2 commented 5 years ago

Unfinished work in mx2cc\translator_cpp.monkey2

Pharmhaus-2 commented 5 years ago

MCVE:

#Import "<std>"

Class Test222
    Method New(atype:String[] = New String[]("Test") )
        Self.New()
    End
End

Function Main()
End Function
Pharmhaus-2 commented 5 years ago

@Ghouly-The-Ghost Would you mind checking with the current develop? I would appreciate some feedback.