[FIR] Fix false negative REDUNDANT_CALL_OF_CONVERSION_METHOD
... in presence of typealiases. #KT-61921
This commit is contained in:
committed by
Space Team
parent
e788c7166a
commit
9475bc250c
+5
@@ -1,3 +1,8 @@
|
||||
FILE: int.kt
|
||||
public final val foo: R|kotlin/Int| = Int(1).R|kotlin/Int.toInt|()
|
||||
public get(): R|kotlin/Int|
|
||||
public final typealias IntAlias = R|kotlin/Int|
|
||||
public final val aliased: R|IntAlias| = Int(1)
|
||||
public get(): R|IntAlias|
|
||||
public final val bar: R|kotlin/Int| = R|/aliased|.R|kotlin/Int.toInt|()
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/int.kt
Vendored
+6
-1
@@ -1,2 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
val foo = 1.<!REDUNDANT_CALL_OF_CONVERSION_METHOD!>toInt()<!>
|
||||
val foo = 1.<!REDUNDANT_CALL_OF_CONVERSION_METHOD!>toInt()<!>
|
||||
|
||||
typealias IntAlias = Int
|
||||
val aliased: IntAlias = 1
|
||||
|
||||
val bar = aliased.<!REDUNDANT_CALL_OF_CONVERSION_METHOD!>toInt()<!>
|
||||
|
||||
Reference in New Issue
Block a user