Add inspection (INFORMATION) to convert Pair constructor into to call
So #KT-22933 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
963e430b42
commit
f48eacfbd4
+8
@@ -0,0 +1,8 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
// ERROR: No value passed for parameter 'second'
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter B in constructor Pair<out A, out B>(first: A, second: B)<br>Please specify it explicitly.<br>
|
||||
import kotlin.Pair
|
||||
fun test() {
|
||||
val p = <caret>Pair(1, )
|
||||
}
|
||||
Reference in New Issue
Block a user