FIR: spread OptIn markers to children except fake override case
This commit implements KT-49001 for FIR
This commit is contained in:
committed by
TeamCityServer
parent
69e06a242a
commit
a76aee9b69
+1
-1
@@ -55,4 +55,4 @@ fun use1() {
|
||||
C.D.<!OPT_IN_USAGE!>E<!>.<!OPT_IN_USAGE!>F<!>()
|
||||
}
|
||||
|
||||
fun use2(f: <!OPT_IN_USAGE!>C.D.E.F<!>) = <!OPT_IN_USAGE!>f<!>.hashCode()
|
||||
fun use2(f: <!OPT_IN_USAGE!>C.D.E.F<!>) = <!OPT_IN_USAGE!>f<!>.<!OPT_IN_USAGE!>hashCode<!>()
|
||||
|
||||
+2
-2
@@ -49,7 +49,7 @@ interface NotExperimentalExtension : ExperimentalType {
|
||||
|
||||
fun use(arg: NotExperimentalExtension) {
|
||||
arg.foo()
|
||||
arg.<!OPT_IN_USAGE_ERROR!>bar<!>()
|
||||
arg.bar()
|
||||
}
|
||||
|
||||
@Marker
|
||||
@@ -120,5 +120,5 @@ fun operatorContainerUsage(s: String, a: AnotherContainer) {
|
||||
val res1 = s <!OPT_IN_USAGE_ERROR!>-<!> s
|
||||
val res2 = <!OPT_IN_USAGE_ERROR!>s<!>()
|
||||
val res3 = <!OPT_IN_USAGE_ERROR!>res1<!> <!OPT_IN_USAGE_ERROR!>><!> <!OPT_IN_USAGE_ERROR!>res2<!>
|
||||
<!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
<!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
}
|
||||
+2
-2
@@ -49,7 +49,7 @@ interface NotExperimentalExtension : ExperimentalType {
|
||||
|
||||
fun use(arg: NotExperimentalExtension) {
|
||||
arg.foo()
|
||||
arg.<!OPT_IN_USAGE_ERROR!>bar<!>()
|
||||
arg.bar()
|
||||
}
|
||||
|
||||
@Marker
|
||||
@@ -120,5 +120,5 @@ fun operatorContainerUsage(s: String, a: AnotherContainer) {
|
||||
val res1 = s <!OPT_IN_USAGE_ERROR!>-<!> s
|
||||
val res2 = <!OPT_IN_USAGE_ERROR!>s<!>()
|
||||
val res3 = <!OPT_IN_USAGE_ERROR!>res1<!> <!OPT_IN_USAGE_ERROR!>><!> <!OPT_IN_USAGE_ERROR!>res2<!>
|
||||
<!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
<!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user