FIR: fix a bunch of issues after DiagnosticsReporter refactoring related to reporting diagnostic on null source
This commit is contained in:
committed by
Space Team
parent
a7edf5b83e
commit
69f2e8826a
+1
-1
@@ -14,7 +14,7 @@ fun test_2(
|
||||
) {}
|
||||
|
||||
fun test_3(
|
||||
x: () -> Any = { y() to <!UNINITIALIZED_PARAMETER!>y<!>.invoke() }, // Error
|
||||
x: () -> Any = { <!UNINITIALIZED_PARAMETER!>y<!>() to <!UNINITIALIZED_PARAMETER!>y<!>.invoke() }, // Error
|
||||
y: () -> String = { "OK" }
|
||||
) {}
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ fun test_2(
|
||||
) {}
|
||||
|
||||
fun test_3(
|
||||
x: () -> Any = { y() to <!UNINITIALIZED_PARAMETER!>y<!>.invoke() }, // Error
|
||||
x: () -> Any = { <!UNINITIALIZED_PARAMETER!>y<!>() to <!UNINITIALIZED_PARAMETER!>y<!>.invoke() }, // Error
|
||||
y: () -> String = { "OK" }
|
||||
) {}
|
||||
|
||||
|
||||
+2
-2
@@ -85,7 +85,7 @@ object O {
|
||||
operator fun provideDelegate(x: Any?, y: Any?): C = C()
|
||||
}
|
||||
|
||||
val x: String by <!OPT_IN_USAGE_ERROR!>O<!>
|
||||
val x: String by <!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>O<!>
|
||||
|
||||
@Marker
|
||||
class OperatorContainer : Comparable<OperatorContainer> {
|
||||
@@ -122,4 +122,4 @@ fun operatorContainerUsage(s: String, a: AnotherContainer) {
|
||||
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, OPT_IN_USAGE_ERROR!>for (c in a) {}<!>
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ object O {
|
||||
operator fun provideDelegate(x: Any?, y: Any?): C = C()
|
||||
}
|
||||
|
||||
val x: String by <!OPT_IN_USAGE_ERROR!>O<!>
|
||||
val x: String by <!OPT_IN_USAGE_ERROR, OPT_IN_USAGE_ERROR!>O<!>
|
||||
|
||||
@Marker
|
||||
class OperatorContainer : Comparable<OperatorContainer> {
|
||||
|
||||
Reference in New Issue
Block a user