## Minimized code ```Scala ➜ dotr -version Starting dotty REPL... Dotty compiler version 0.27.0-RC1 -- Copyright 2002-2020, LAMP/EPFL scala> opaque type T = Int 1 |opaque type T = Int |^^^^^^ |Illegal start of statement: no modifiers allowed here scala> object Foo { opaque type T = Int } // defined object Foo ```