## Compiler version Latest nightly. ## Minimized code ```scala import language.experimental.captureChecking import caps._ trait Abstract: type C <: CapSet def boom(): Unit^{this.C^} class Concrete extends Abstract: type C = Nothing def boom() = () // dotty.tools.dotc.cc.IllegalCaptureRef: Nothing ``` ## Output The compiler crashes with `dotty.tools.dotc.cc.IllegalCaptureRef: Nothing`.