//KT-2014 Better diagnostic when using property syntax to call a method package c class Foo { fun prop() : Int = 1 fun bar(i: Int) : Int = i val a : Int = 1 } fun x(f : Foo) { f.prop f.bar f.a() c() R() } object R {}