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