Skip to content

A list of Scala compiler errors that could be more helpful, especially for newcomers, focused on Scala 3's Dotty compiler

License

Notifications You must be signed in to change notification settings

ryanberckmans/scala-helpful-compiler-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Scala helpful compiler errors

A list of Scala compiler errors that could be more helpful, especially for newcomers to Scala.

The list is focused on Scala 3's Dotty compiler. One day this list could be useful for a larger project around compiler errors. Such a project seems unlikely to occur for Scala 2.13's scalac, which is why this list is Dotty-specific.

Pull requests welcome

🛠️ Help by submitting pull requests with Dotty errors that could be more helpful, especially for newcomers to Scala.

Use this template:

$errorName

// paste output of dotty compiler error or warning
  • Example helpful msg: Oh no, it broke. Suggestion: don't break it

List of Dotty compiler errors that could be more helpful

If statement missing an else branch

Found:    Unit
Required: Int
  • Example helpful msg: The result type of this if statement must be an Int, but there's no else branch, so it returns Unit on else. Suggestion: add an else branch
  • Fixed by scala/scala3#8672

About

A list of Scala compiler errors that could be more helpful, especially for newcomers, focused on Scala 3's Dotty compiler

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published