Files
kotlin/compiler/testData/diagnostics/tests/classObjects/resolveFunctionInsideClassObject.kt
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

9 lines
198 B
Kotlin

package test
class Test {
fun test(): Int = 12
default object {
val a = <!INACCESSIBLE_OUTER_CLASS_EXPRESSION!>test()<!> // Check if resolver will be able to infer type of a variable
}
}