blob: 1cb2f90743f2943bab52c8b500d9499cca1ded89 [file]
// RUN_PIPELINE_TILL: FRONTEND
// LANGUAGE: +InlineClasses
// DIAGNOSTICS: -INLINE_CLASS_DEPRECATED
inline class FileSize(val bytesSize: Long): <!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>Comparable<!> {
fun getBytes() = bytesSize
fun getKB() = getBytes() / 1024
fun getMB() = getKB() / 1024
fun getGB() = getMB() / 1024
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, integerLiteral, multiplicativeExpression,
primaryConstructor, propertyDeclaration */