blob: d552d8e695bbb9c769b0f0c744799da997e0f50f (
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]) {
List(ErrorLevel, ErrorLevel)
}
}
|