Scala: xxx.type() cannot be used --- use xxx.`type`() instead (backticks)
Asked by
DenisD
Hi!
I've started to develop an application on Scala, I'm newbie in both scala and sikuli.
I'm using scala IDE and found that "type" is a keyword there. When I try to call a sikuli method "type", like:
s.type(Key.ENTER)
I get following error:
Multiple markers at this line
- identifier expected but 'type' found.
- identifier expected but 'type' found.
Could you advise me how I can handle such situations? I understand that I can create a java class that will be a wrap for such methods and will simply provide renamed methods, or even change the method name in sikuli sources, but I don't think that these are the best solutions.. How can I tell the IDE that type is simply a method name, not a keyword?
Thank you!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- DenisD
- Solved:
- Last query:
- Last reply:
To post a message you must log in.