Add inspection (INFORMATION) to convert Pair constructor into to call

So #KT-22933 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-02-28 17:55:05 +03:00
committed by Mikhail Glukhikh
parent 963e430b42
commit f48eacfbd4
8 changed files with 107 additions and 0 deletions
@@ -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, )
}