Skip to content
This repository has been archived by the owner on Feb 23, 2018. It is now read-only.

Error Messages

paulp edited this page Apr 30, 2011 · 2 revisions

So what to do about this old friend?

false + false

error: type mismatch;
 found   : Boolean(false)
 required: String
false + false
        ^

Maybe the following could be pre- or appended:

Note: error occurred during application of an implicit view:
  Predef.any2stringadd(false).+(false)

private final val alarmClasses = Map
(...) // some values for the map - but it's not the right way to do it

def getMapValue() = alarmClasses.get(...) 
// gives an error 'value get is not a member of object scala.collection.immutable.Map'

At first I thought what does it mean, Map does have a menber 'get'
until I found my mistake ;)
Clone this wiki locally