blob: c328bf08fd72eaef242377ca4f59562f7cc2cd8a (
plain) (
blame)
1
2
3
4
5
6
7
8
|
trait LogLevelType
object Test {
type LogLevel = Int with LogLevelType
final val ErrorLevel = 1.asInstanceOf[Int with LogLevelType]
def main(args: Array[String]): Unit = {
List(ErrorLevel, ErrorLevel)
}
}
|