FIR: make Java default constructor visibility same with class visibility

This commit is contained in:
Mikhail Glukhikh
2019-07-10 16:56:08 +03:00
parent 14bbbb5bf5
commit 2ceffa241b
9 changed files with 9 additions and 10 deletions
@@ -3,7 +3,7 @@ FILE fqName:<root> fileName:/javaSyntheticProperty.kt
FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.String? visibility:public [final,static]
EXPRESSION_BODY
CALL 'public open fun getFoo (): kotlin.String? declared in <root>.J' type=kotlin.String? origin=null
$this: CONSTRUCTOR_CALL 'public constructor <init> () declared in <root>.J' type=<root>.J origin=null
$this: CONSTRUCTOR_CALL 'public/*package*/ constructor <init> () declared in <root>.J' type=<root>.J origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test> visibility:public modality:FINAL <> () returnType:kotlin.String?
correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val]
BLOCK_BODY
@@ -1,4 +1,4 @@
public/*package*/ open class AnnotatedParameterInInnerClassConstructor : R|kotlin/Any| {
public constructor(): R|test/AnnotatedParameterInInnerClassConstructor|
public/*package*/ constructor(): R|test/AnnotatedParameterInInnerClassConstructor|
}
@@ -1,6 +1,6 @@
public/*package*/ open class AnnotatedTypeInFun : R|kotlin/Any| {
public/*package*/ open operator fun foo(@R|test/AnnotatedTypeInFun.Anno|(String(a)) a: @R|test/AnnotatedTypeInFun.Anno|(String(a)) R|ft<kotlin/String, kotlin/String?>|!, @R|test/AnnotatedTypeInFun.Anno|(String(b)) b: @R|test/AnnotatedTypeInFun.Anno|(String(b)) R|ft<kotlin/String, kotlin/String?>|!): R|kotlin/Unit|
public constructor(): R|test/AnnotatedTypeInFun|
public/*package*/ constructor(): R|test/AnnotatedTypeInFun|
}