FIR initializer: don't report type mismatch in SomeInt = Int case
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ fun <T> otherGeneric(l: List<T>) {}
|
||||
fun test() {
|
||||
val a: Byte = id(1)
|
||||
|
||||
val b: Byte = <!INITIALIZER_TYPE_MISMATCH!>id(300)<!>
|
||||
val b: Byte = id(300)
|
||||
|
||||
val c: Int = <!INITIALIZER_TYPE_MISMATCH!>id(9223372036854775807)<!>
|
||||
|
||||
@@ -29,7 +29,7 @@ fun test() {
|
||||
|
||||
val f: Byte = either(1, 2)
|
||||
|
||||
val g: Byte = <!INITIALIZER_TYPE_MISMATCH!>either(1, 300)<!>
|
||||
val g: Byte = either(1, 300)
|
||||
|
||||
other(<!ARGUMENT_TYPE_MISMATCH!>11<!>)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user