// FIR_BLOCKED: KT-59287 // !JVM_DEFAULT_MODE: all-compatibility // EXPECTED_ERROR: (kotlin:16:5) modifier private not allowed here interface Foo { fun foo() { System.out.println("foo") } fun foo2(a: Int) { System.out.println("foo2") } fun bar() private fun privateMethodWithDefault() { System.out.println("privateMethodWithDefault") } }