Assignment 2 - Query

Username123
Neuling
Neuling
Beiträge: 7
Registriert: 7. Nov 2017 15:48

Assignment 2 - Query

Beitrag von Username123 » 17. Nov 2017 13:00

I see the following error after importing the project into the IntelliJ IDE.

Eg: In the ConvertTest.scala
Error: Cannot resolve reference convert with such signature. Similar errors for Add and Sub.

Is this the expected behaviour?

mirko-koehler
Mausschubser
Mausschubser
Beiträge: 79
Registriert: 16. Okt 2017 12:28

Re: Assignment 2 - Query

Beitrag von mirko-koehler » 17. Nov 2017 15:20

IntelliJ has some problems with implicit conversions sometimes. You can try to add

Code: Alles auswählen

import scala.language.implicitConversions
to the file. Maybe that will fix the error. :)

Username123
Neuling
Neuling
Beiträge: 7
Registriert: 7. Nov 2017 15:48

Re: Assignment 2 - Query

Beitrag von Username123 » 17. Nov 2017 16:08

Thank you! That fixed the errors in all the test classes expect for MultipleArgumentsTest. In this there are also type mismatch errors.

spilot
Neuling
Neuling
Beiträge: 7
Registriert: 28. Nov 2015 18:28

Re: Assignment 2 - Query

Beitrag von spilot » 24. Nov 2017 14:10

The type mismatch errors in MultipleArgumentsTest are caused by the fact that it is part of the given task to change types and method signatures. The test cases will fail (i.e. not even compile) when the signatures are left unchanged.

Antworten

Zurück zu „Archiv“