Files
kotlin-fork/js/js.translator/testData/inlineMultiFile/cases/trait/trait.2.kt
T
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

23 lines
375 B
Kotlin

/*
* Copy of JVM-backend test
* Found at: compiler/testData/codegen/boxInline/trait/trait.2.kt
*/
package test
trait InlineTrait {
inline final fun finalInline(s: () -> String): String {
return s()
}
default object {
inline final fun finalInline(s: () -> String): String {
return s()
}
}
}
class Z: InlineTrait {
}