1
// This one is weird and nasty. Not sure if this is scalac or sbt
2
// (tried with 0.12 & 0.12.2-RC2) bug.
4
// A level of indirection is required to trigger this bug.
5
// Exts seems to need to be defined in separate file.
9
// 2. sbt run (it works)
10
// 3. Comment A & uncomment B.
11
// 4. sbt run (it fails)
12
// 5. Switch it back & sbt run. It still fails.
14
// In this project sbt clean helps. However in a large project where this
15
// bug was found compiler crashed even after doing sbt clean. The only
16
// way to work around this was to reference Exts object explicitly (C) in
17
// the source file using its implicit classes.
19
// Lets suppose this is a mega-trait combining all sorts of helper
21
trait Support extends Exts
23
object ImplicitsBug extends App with Support { // A
24
// object ImplicitsBug extends App with Exts { // B
25
//Exts // C) this reference helped in the large project.