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