blob: d552d8e695bbb9c769b0f0c744799da997e0f50f (
plain) (
tree)
|
|
trait LogLevelType
object Test {
type LogLevel = Int with LogLevelType
final val ErrorLevel = 1.asInstanceOf[Int with LogLevelType]
def main(args: Array[String]) {
List(ErrorLevel, ErrorLevel)
}
}
|