pyro.monkey2 [189] : Error:Can't find overload for 'new' with argument types ()

About Monkey 2 Forums Monkey 2 Programming Help pyro.monkey2 [189] : Error:Can't find overload for 'new' with argument types ()

This topic contains 4 replies, has 2 voices, and was last updated by  Amon 3 months, 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13701

    Amon
    Participant
    #13703

    Mark Sibly
    Keymaster

    What do I need to #Import to run that? Would a full runnable example be possible?

    #13705

    Amon
    Participant

    Attached.

    Attachments:
    1. PYRO-TEMPLATE.zip
    #13709

    Mark Sibly
    Keymaster

    Try adding Super.New( "Window" ) at the top of the ctor, eg::

    Pyro needs a minor fix here due to a recent monkey2 bugfix.  ScreenManager currently has 2 ‘default’ constructors, a bit like this:

    So if you just go ‘New ScreenManager’ without any args, there’s no way to tell which one to use. Monkey2 should really check for this and cause an error when compiling ScreenManager, not just when compiling a class that extends ScreenManager. I’m not sure if this is 100% possible when compiling ALL overloads with default parameters though, will look into it. If nothing else, the error should be better!

    Also, pyro will need to be tweaked here.

    #13710

    Amon
    Participant

    That made it work. Thanks. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.