FIR initializer: don't report type mismatch in SomeInt = Int case

This commit is contained in:
Mikhail Glukhikh
2021-04-09 15:42:28 +03:00
parent 57d2eb5da2
commit fa4d664a18
7 changed files with 44 additions and 32 deletions
@@ -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<!>)