[IDE-NI-MIGRATE] Migrate QuickFix tests for new inference

This commit is contained in:
Mikhail Zarechenskiy
2019-05-06 03:35:54 +03:00
parent 871925ba31
commit d4d1648e1d
71 changed files with 77 additions and 1 deletions
@@ -1,6 +1,7 @@
// "Replace with 'New'" "true"
// WITH_RUNTIME
// ERROR: Type inference failed: Not enough information to infer parameter T in constructor New<T>()<br>Please specify it explicitly.<br>
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
abstract class Main<T>
@@ -1,6 +1,7 @@
// "Replace with 'New'" "true"
// WITH_RUNTIME
// ERROR: Type inference failed: Not enough information to infer parameter T in constructor New<T>()<br>Please specify it explicitly.<br>
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
abstract class Main<T>
@@ -1,5 +1,6 @@
// "Replace with 'Factory()'" "true"
// WITH_RUNTIME
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
class Foo<T> @Deprecated("", ReplaceWith("Factory<T>()")) constructor()
fun <T> Factory(): Foo<T> = TODO()
@@ -1,5 +1,6 @@
// "Replace with 'Factory()'" "true"
// WITH_RUNTIME
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
class Foo<T> @Deprecated("", ReplaceWith("Factory<T>()")) constructor()
fun <T> Factory(): Foo<T> = TODO()
@@ -1,5 +1,6 @@
// "Replace with 'addA(d(createDummy, dummyParam1, initDummy), dummyParam)'" "true"
// WITH_RUNTIME
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
typealias NewDummyRef<V> = (Any) -> V
@@ -1,5 +1,6 @@
// "Replace with 'addA(d(createDummy, dummyParam1, initDummy), dummyParam)'" "true"
// WITH_RUNTIME
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
typealias NewDummyRef<V> = (Any) -> V
@@ -1,4 +1,5 @@
// "Replace with 'newFun()'" "true"
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
@Deprecated("", ReplaceWith("newFun<T>()"))
fun <T : Any> oldFun(): T? {
@@ -1,4 +1,5 @@
// "Replace with 'newFun()'" "true"
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
@Deprecated("", ReplaceWith("newFun<T>()"))
fun <T : Any> oldFun(): T? {