// !WITH_NEW_INFERENCE package a fun foo(i: Int) = i fun bar(l: Long) = l fun main() { val i = 111111111111111777777777777777 //todo add diagnostic text messages //report only 'The value is out of range' //not 'An integer literal does not conform to the expected type Int/Long' val l: Long = 1111111111111117777777777777777 foo(11111111111111177777777777777) bar(11111111111111177777777777777) }