How to fix "an expression of type null is ineligible for implicit conversion"

781 Views Asked by At

When inspecting this code:

def getFilmById(filmId: Long) = quote {
  query[Film].filter(f => f.film_id == lift(filmId))
}

ensime shows an error in place of opening brace:

an expression of type Null is ineligible for implicit conversion

The application compiles and query is generated properly, only editor marks it as a compile error.

I'm using quill 3.1.0, ensime 2.5.1, emacs 26.2-1 scala 2.12.8.

I expect no compilation error shown in editor.

0

There are 0 best solutions below