// SHOULD_FAIL_WITH: Function foo() on A already exists class A(val n: Int) { val foo: Boolean = n > 1 } fun A.foo() = 1