IR. Change visibility to lowered default function/constructors to public

This commit is contained in:
Mikhael Bogdanov
2019-11-18 10:12:20 +01:00
parent abef5daea9
commit a214d61567
5 changed files with 60 additions and 3 deletions
@@ -1,7 +1,19 @@
class MyClass() {
fun test(s: String = "") {}
open class MyClass() {
fun testPublic(s: String = "") {}
protected fun testProtected(s: String = "") {}
private fun testPrivate(s: String = "") {}
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: MyClass, test$default
// TESTED_OBJECTS: MyClass, testPublic$default
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: MyClass, testProtected$default
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: MyClass, testPrivate$default
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC