[FE 1.0] Migrate most of warning/error pairs to DiagnosticFactoryForDeprecation
This commit is contained in:
@@ -3,7 +3,7 @@ interface A
|
||||
class B : A
|
||||
fun foo1(list: List<A>, arg: B?): Boolean {
|
||||
// Type mismatch
|
||||
return arg <!TYPE_INFERENCE_ONLY_INPUT_TYPES!>in<!> list // resolved to extension
|
||||
return arg <!TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR!>in<!> list // resolved to extension
|
||||
}
|
||||
fun foo2(list: List<A>, arg: B?): Boolean {
|
||||
// FAKE: no cast needed
|
||||
@@ -17,4 +17,4 @@ fun foo3(list: List<A>, arg: B?): Boolean {
|
||||
fun foo4(list: List<A>, arg: B): Boolean {
|
||||
// Ok
|
||||
return arg in list
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user