문제

  • Create a new scala project
  • add library reference to scalaz
  • create a new package
  • create a scala file in the package
  • set encoding to UTF-8
  • paste the content of the bifunctor example
  • adjust the package in the file

It works in intellij. With eclipse i get 8 errors like this:

';' expected but something found

in the lines containing assert_≟ .

I'm using Eclipse Helios with Scala IDE for Eclipse 1.0.0.201011110258.

도움이 되었습니까?

해결책

  • Are you using the correct character set (e.g. UTF8) for you source files?
  • Are the Eclipse "errors" from the IDE itself, or from a compilation run (an invocation of scalac?
  • Can you scalac compile the source file manually?

Assuming it is not a fie encoding problem and that you can manually compile the file, I might conclude that, as scalaz uses complex type inference, Eclipse might be reporting erroneous errors.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top