diff --git a/plugins/kotlin/idea/resources/fileTemplates/code/New Kotlin Function Body.kt.ft b/plugins/kotlin/idea/resources/fileTemplates/code/New Kotlin Function Body.kt.ft index 4b3a72fd1237..db91f59e605a 100644 --- a/plugins/kotlin/idea/resources/fileTemplates/code/New Kotlin Function Body.kt.ft +++ b/plugins/kotlin/idea/resources/fileTemplates/code/New Kotlin Function Body.kt.ft @@ -1 +1 @@ -TODO("not implemented") //To change body of created functions use File | Settings | File Templates. +TODO("not implemented") //To change body of created functions use File | Settings | File Templates. \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/codeInsight/AbstractOverrideImplementTest.kt b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/codeInsight/AbstractOverrideImplementTest.kt index 7377d12808b3..115c99c99b6c 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/codeInsight/AbstractOverrideImplementTest.kt +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/codeInsight/AbstractOverrideImplementTest.kt @@ -34,7 +34,7 @@ import org.jetbrains.kotlin.idea.core.overrideImplement.OverrideImplementMembers import org.jetbrains.kotlin.idea.core.overrideImplement.OverrideMemberChooserObject import org.jetbrains.kotlin.idea.core.overrideImplement.OverrideMembersHandler import org.jetbrains.kotlin.idea.test.KotlinLightCodeInsightFixtureTestCase -import org.jetbrains.kotlin.idea.test.KotlinLightProjectDescriptor +import org.jetbrains.kotlin.idea.test.KotlinWithJdkAndRuntimeLightProjectDescriptor import org.jetbrains.kotlin.idea.test.dumpTextWithErrors import org.jetbrains.kotlin.idea.util.application.executeWriteCommand import org.jetbrains.kotlin.psi.KtClassOrObject @@ -48,7 +48,7 @@ import java.io.File import kotlin.test.assertEquals abstract class AbstractOverrideImplementTest : KotlinLightCodeInsightFixtureTestCase() { - override fun getProjectDescriptor(): LightProjectDescriptor = KotlinLightProjectDescriptor.INSTANCE + override fun getProjectDescriptor(): LightProjectDescriptor = KotlinWithJdkAndRuntimeLightProjectDescriptor.INSTANCE protected fun doImplementFileTest(memberToOverride: String? = null) { doFileTest(ImplementMembersHandler(), memberToOverride) diff --git a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/AbstractQuickFixTest.java b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/AbstractQuickFixTest.java index 33a3cffa729b..8ad1cc3157da 100644 --- a/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/AbstractQuickFixTest.java +++ b/plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/idea/quickfix/AbstractQuickFixTest.java @@ -225,18 +225,22 @@ public abstract class AbstractQuickFixTest extends KotlinLightQuickFixTestCase { ConfigLibraryUtil.configureKotlinJsRuntimeAndSdk(getModule(), getFullJavaJDK()); } - else if (beforeFileName.endsWith("Runtime.kt") || - InTextDirectivesUtils.isDirectiveDefined(FileUtil.loadFile(new File(beforeFileName)), "WITH_RUNTIME")) { + else if (isRuntimeNeeded(beforeFileName)) { ConfigLibraryUtil.configureKotlinRuntimeAndSdk(getModule(), getFullJavaJDK()); } } + private static boolean isRuntimeNeeded(@NotNull String beforeFileName) throws IOException { + return beforeFileName.endsWith("Runtime.kt") || + beforeFileName.toLowerCase().contains("createfromusage") || + InTextDirectivesUtils.isDirectiveDefined(FileUtil.loadFile(new File(beforeFileName)), "WITH_RUNTIME"); + } + private void unConfigureRuntimeIfNeeded(@NotNull String beforeFileName) throws IOException { if (beforeFileName.endsWith("JsRuntime.kt")) { ConfigLibraryUtil.unConfigureKotlinJsRuntimeAndSdk(getModule(), getProjectJDK()); } - else if (beforeFileName.endsWith("Runtime.kt") || - InTextDirectivesUtils.isDirectiveDefined(FileUtil.loadFile(new File(beforeFileName)), "WITH_RUNTIME")) { + else if (isRuntimeNeeded(beforeFileName)) { ConfigLibraryUtil.unConfigureKotlinRuntimeAndSdk(getModule(), getProjectJDK()); } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/dataMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/dataMethod.kt.after index 9e98c39f744e..a3cea12dfd79 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/dataMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/dataMethod.kt.after @@ -5,6 +5,6 @@ import org.junit.runners.Parameterized class A { @Parameterized.Parameters fun data(): Collection> { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUp.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUp.kt.after index 60535967ca5a..663bc141a3f0 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUp.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUp.kt.after @@ -5,6 +5,6 @@ import org.junit.Before class A { @Before fun setUp() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUpExists.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUpExists.kt.after index ff4c414f1da9..a30032869ee9 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUpExists.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/setUpExists.kt.after @@ -5,7 +5,7 @@ import org.junit.Before class A { @org.testng.annotations.BeforeMethod fun setUp() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } @Before diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDown.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDown.kt.after index 2dac3329f77c..b3d7f5a84bd2 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDown.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDown.kt.after @@ -5,6 +5,6 @@ import org.junit.After class A { @After fun tearDown() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDownExists.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDownExists.kt.after index 4580ba1ffa79..da36100a7d2e 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDownExists.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/tearDownExists.kt.after @@ -5,7 +5,7 @@ import org.junit.After class A { @org.testng.annotations.AfterMethod fun tearDown() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } @After diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/testMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/testMethod.kt.after index a5ba54d6a35c..3c08dfe45a05 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/testMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/jUnit4/testMethod.kt.after @@ -5,6 +5,6 @@ import org.junit.Test class A { @Test fun name() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/junit3/testMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/junit3/testMethod.kt.after index e4a3ec40d2aa..f9356b267081 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/junit3/testMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/junit3/testMethod.kt.after @@ -4,6 +4,6 @@ import junit.framework.TestCase class A : TestCase() { fun testName() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/dataMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/dataMethod.kt.after index c6065bae128a..859ca021d07d 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/dataMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/dataMethod.kt.after @@ -6,6 +6,6 @@ import org.testng.annotations.Test @Test class A { @DataProvider(name = "name") fun name(): Array> { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/setUp.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/setUp.kt.after index 2b1160f5dfeb..5ae952f029ef 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/setUp.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/setUp.kt.after @@ -6,6 +6,6 @@ import org.testng.annotations.Test @Test class A { @BeforeMethod fun setUp() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/tearDown.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/tearDown.kt.after index 2ed9609fd48e..a601b0616720 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/tearDown.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/tearDown.kt.after @@ -6,6 +6,6 @@ import org.testng.annotations.Test @Test class A { @AfterMethod fun tearDown() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/testMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/testMethod.kt.after index 62e5819e3869..56f84e11198f 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/testMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/generate/testFrameworkSupport/testNG/testMethod.kt.after @@ -5,6 +5,6 @@ import org.testng.annotations.Test @Test class A { @Test fun testName() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/copyKDoc.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/copyKDoc.kt.after index c051dd27ed45..d1ce01dd0ea7 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/copyKDoc.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/copyKDoc.kt.after @@ -11,6 +11,6 @@ class B : A() { * @see TEST */ override fun foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/defaultValues.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/defaultValues.kt.after index ab32064e6b5b..482c3aba0e2c 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/defaultValues.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/defaultValues.kt.after @@ -4,6 +4,6 @@ interface T { class C : T { override fun foo(a: Int) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/delegatedMembers.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/delegatedMembers.kt.after index cda099f81c07..cc15d1330cc4 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/delegatedMembers.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/delegatedMembers.kt.after @@ -5,7 +5,7 @@ interface T { class C(t :T) : T by t { override fun bar() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun equals(other: Any?): Boolean { @@ -13,7 +13,7 @@ class C(t :T) : T by t { } override fun foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun hashCode(): Int { diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/doNotOverrideFinal.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/doNotOverrideFinal.kt.after index 74f935b4b1e2..4287dc0ee7eb 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/doNotOverrideFinal.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/doNotOverrideFinal.kt.after @@ -23,7 +23,7 @@ class C : B(), I { } override fun g() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun hashCode(): Int { diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/emptyClassBodyFunctionMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/emptyClassBodyFunctionMethod.kt.after index ccd6336f5fab..6aa7f228cb01 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/emptyClassBodyFunctionMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/emptyClassBodyFunctionMethod.kt.after @@ -5,6 +5,6 @@ interface T { class C : T { override fun Foo(): (String) -> Unit { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionMethod.kt.after index ccd6336f5fab..6aa7f228cb01 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionMethod.kt.after @@ -5,6 +5,6 @@ interface T { class C : T { override fun Foo(): (String) -> Unit { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionWithTypeParameters.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionWithTypeParameters.kt.after index e0f2e1cce397..3e645f23f55d 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionWithTypeParameters.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/functionWithTypeParameters.kt.after @@ -4,6 +4,6 @@ interface Trait { class TraitImpl : Trait { override fun > foo() where B : Cloneable, B : Comparable { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/generateMulti.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/generateMulti.kt.after index 3be9ff771df1..bc85cea0b6f9 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/generateMulti.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/generateMulti.kt.after @@ -8,14 +8,14 @@ interface Some { class SomeOther : Some { override fun someFoo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun someGenericFoo(): S { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun someOtherFoo(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericMethod.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericMethod.kt.after index 3173a01cbd95..d217b342bfc1 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericMethod.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericMethod.kt.after @@ -4,6 +4,6 @@ interface G { class GC() : G { override fun foo(t: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericTypesSeveralMethods.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericTypesSeveralMethods.kt.after index 58aa8eb3e07e..a1c05cd4ba0c 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericTypesSeveralMethods.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/genericTypesSeveralMethods.kt.after @@ -2,6 +2,6 @@ class MyClass> : Iterable { override fun iterator(): Iterator { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementFunctionType.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementFunctionType.kt.after index 8c4c6f88a8e8..bd25ba5cc6f4 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementFunctionType.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementFunctionType.kt.after @@ -1,5 +1,5 @@ class C : (String) -> Boolean { override fun invoke(p1: String): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementJavaRawSubclass/foo/Impl.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementJavaRawSubclass/foo/Impl.kt.after index 03c1f03707e7..7752567aadd3 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementJavaRawSubclass/foo/Impl.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementJavaRawSubclass/foo/Impl.kt.after @@ -3,6 +3,6 @@ import foo.B class C : A() { override fun foo(x: MutableList?, y: String?): B<*> { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementSamAdapters/foo/Impl.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementSamAdapters/foo/Impl.kt.after index 30bf03f0c6b2..b7f113fa3328 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementSamAdapters/foo/Impl.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/implementSamAdapters/foo/Impl.kt.after @@ -2,6 +2,6 @@ package foo class Impl: B { override fun foo(r: Runnable?) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaInterfaceMethod/foo/Impl.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaInterfaceMethod/foo/Impl.kt.after index 7ad9f73f1228..738daafa9145 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaInterfaceMethod/foo/Impl.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaInterfaceMethod/foo/Impl.kt.after @@ -2,6 +2,6 @@ import foo.Intf class Impl(): Intf { override fun getFooBar(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaParameters/foo/Impl.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaParameters/foo/Impl.kt.after index c1d693e8494a..5e6799fee6cf 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaParameters/foo/Impl.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/javaParameters/foo/Impl.kt.after @@ -2,6 +2,6 @@ import foo.Intf class Impl(): Intf { override fun fooBar(i: Int, s: Array?, foo: Any?) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/localClass.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/localClass.kt.after index bf5784c95af4..5822c9a3546e 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/localClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/localClass.kt.after @@ -7,7 +7,7 @@ fun f() { object : C() { override fun f(a: R) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/multipleSupers.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/multipleSupers.kt.after index a9fef6855e75..e1ef045a435a 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/multipleSupers.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/multipleSupers.kt.after @@ -8,7 +8,7 @@ interface B { class C : A(), B { override fun bar() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun equals(other: Any?): Boolean { diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideExplicitFunction.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideExplicitFunction.kt.after index a9a29877bd40..2da1da10ee82 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideExplicitFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideExplicitFunction.kt.after @@ -4,6 +4,6 @@ interface A { class B : A { override fun String.foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideFunctionProperty.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideFunctionProperty.kt.after index 93d07fcb0ea5..0d439333af0f 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideFunctionProperty.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideFunctionProperty.kt.after @@ -1,4 +1,3 @@ -// ERROR: Unresolved reference: println open class A() { open val method : () -> Unit? = {println("hello")} } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideGenericFunction.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideGenericFunction.kt.after index 8fe7ef7df91c..faaaf25d70cc 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideGenericFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideGenericFunction.kt.after @@ -1,4 +1,3 @@ -// ERROR: Unresolved reference: println interface A { fun foo(value : T) : Unit = println(value) } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideRespectCaretPosition.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideRespectCaretPosition.kt.after index 240b4493fe4e..62d5cbf3cd70 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideRespectCaretPosition.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/overrideRespectCaretPosition.kt.after @@ -1,4 +1,3 @@ -// ERROR: Unresolved reference: println open class A() { open fun foo(value : Int) : Unit = println(value) open val bar : Int = 0 diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/privateJavaMethod/foo/Impl.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/privateJavaMethod/foo/Impl.kt.after index 4f85ea76bdfe..8b88b83b6a28 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/privateJavaMethod/foo/Impl.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/privateJavaMethod/foo/Impl.kt.after @@ -20,6 +20,6 @@ class C : A(), I { } override fun z() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/respectCaretPosition.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/respectCaretPosition.kt.after index 8819a883a49e..be5a975d16b0 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/respectCaretPosition.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/respectCaretPosition.kt.after @@ -6,7 +6,7 @@ interface Test { class SomeTest : Test { val hello = 12 override fun test() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override val testProp: Int diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/sameTypeName/foo/Impl.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/sameTypeName/foo/Impl.kt.after index cd7fde4e1423..6f5308b7b29f 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/sameTypeName/foo/Impl.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/sameTypeName/foo/Impl.kt.after @@ -3,7 +3,7 @@ import lib.ArrayFactory public class Impl : ArrayFactory { override fun create(): lib.Array { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/starProjections.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/starProjections.kt.after index d37578c4cb4b..6e96802793f1 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/starProjections.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/starProjections.kt.after @@ -6,6 +6,6 @@ interface Base { class Derived : Base { override fun foo(c: C<*>) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/superPreference.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/superPreference.kt.after index bf88498eefde..788374516cb7 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/superPreference.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/superPreference.kt.after @@ -30,15 +30,15 @@ abstract class B : I2, A(), I3 { } override fun i() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun i1() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun i2() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } override fun toString(): String { diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitGenericImplement.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitGenericImplement.kt.after index f869a89549a6..b0e8abc8239d 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitGenericImplement.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitGenericImplement.kt.after @@ -4,6 +4,6 @@ interface G { class GC() : G { override fun foo(t: T): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitNullableFunction.kt.after b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitNullableFunction.kt.after index 6e9a8733613c..f431468fd457 100644 --- a/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitNullableFunction.kt.after +++ b/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/traitNullableFunction.kt.after @@ -4,6 +4,6 @@ interface Some { class SomeOther : Some { override fun foo(some: Int?): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClass.kt.after b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClass.kt.after index 139b1eba9ced..8db5cb1cec83 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClass.kt.after @@ -8,6 +8,6 @@ enum class E : T { A, B, C; override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolon.kt.after b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolon.kt.after index 139b1eba9ced..8db5cb1cec83 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolon.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolon.kt.after @@ -8,6 +8,6 @@ enum class E : T { A, B, C; override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolonAndMembers.kt.after b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolonAndMembers.kt.after index 22c122847e74..0bd527783f49 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolonAndMembers.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumClassWithSemicolonAndMembers.kt.after @@ -8,7 +8,7 @@ enum class E : T { A, B, C; override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } val bar = 1 diff --git a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntries.kt.after b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntries.kt.after index 0e8efeb9c248..7be65e50319e 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntries.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntries.kt.after @@ -3,15 +3,15 @@ enum class E { A { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }, B { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }, C { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }; diff --git a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntriesWithArgs.kt.after b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntriesWithArgs.kt.after index efbf27194209..374f903f5784 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntriesWithArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/enumEntriesWithArgs.kt.after @@ -3,15 +3,15 @@ enum class E(n: Int) { A(1) { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }, B(2) { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }, C(3) { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }; diff --git a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/implementAll.kt.after b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/implementAll.kt.after index be51b47b8260..a09e66d52783 100644 --- a/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/implementAll.kt.after +++ b/plugins/kotlin/idea/tests/testData/intentions/implementAbstractMember/function/implementAll.kt.after @@ -6,14 +6,14 @@ interface T { class U : T { override fun foo(x: String): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } class V : T { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/customOperationOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/customOperationOnUserType.kt.after index dc372ba65737..8f98e44d6152 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/customOperationOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/customOperationOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix fun foo(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/greaterOrEqualOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/greaterOrEqualOnUserType.kt.after index b41076df9f4f..e42d3a802e51 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/greaterOrEqualOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/greaterOrEqualOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun compareTo(t: T): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/inOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/inOnUserType.kt.after index a1bf1065bcdc..a2c5877b71ae 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/inOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/inOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun contains(t: T): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/lessOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/lessOnUserType.kt.after index b2e396aa10f1..1e743d76bcb5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/lessOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/lessOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun compareTo(t: T): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/notInOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/notInOnUserType.kt.after index 7105cac3dfe1..ca3d31fd6da1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/notInOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/notInOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun contains(t: T): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusAssignOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusAssignOnUserType.kt.after index ce83ac5a910f..56ba072c9d2e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusAssignOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusAssignOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun plusAssign(t: T) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusExtraArgs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusExtraArgs.kt.after index 632014c66d1d..85a531024740 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusExtraArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusExtraArgs.kt.after @@ -4,7 +4,7 @@ class A(val n: T) { operator fun unaryPlus(): A = throw Exception() infix operator fun plus(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusForAssignmentOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusForAssignmentOnUserType.kt.after index a44675acfb67..db1c9d74ca2c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusForAssignmentOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusForAssignmentOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun plus(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusMissingArgs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusMissingArgs.kt.after index fa1aa908b34c..9d329d92dd37 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusMissingArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusMissingArgs.kt.after @@ -4,7 +4,7 @@ class A(val n: T) { fun plus(i: Int, s: String): A = throw Exception() infix operator fun plus(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnLibType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnLibType.kt.after index ea002cdcc591..952fb76920c4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnLibType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnLibType.kt.after @@ -8,5 +8,5 @@ fun test() { } infix operator fun Int.plus(a: A): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserType.kt.after index 1cc7258a9eb4..130081a8cb1f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun plus(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserTypeWithTypeParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserTypeWithTypeParams.kt.after index e70ecc18b135..938ac1f7031d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserTypeWithTypeParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusOnUserTypeWithTypeParams.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun plus(i: Int): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/quotedName.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/quotedName.kt.after index cd77d0f297c4..daabd3cca896 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/quotedName.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/quotedName.kt.after @@ -6,5 +6,5 @@ fun test() { } infix fun Int.`!u00A0`(i: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenInOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenInOnUserType.kt.after index e4946707d39b..498451a18637 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenInOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenInOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun contains(t: T): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenNotInOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenNotInOnUserType.kt.after index 0ec49c1ccfe6..c04ccdb644b0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenNotInOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/binaryOperations/whenNotInOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { infix operator fun contains(t: T): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/argumentTypeMismatch.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/argumentTypeMismatch.kt.after index 395a40ff192c..4225a8b12b1f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/argumentTypeMismatch.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/argumentTypeMismatch.kt.after @@ -6,5 +6,5 @@ fun test() { } fun foo(n: String) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callInStringTemplateRuntime.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callInStringTemplateRuntime.kt.after index 6eb12097edaa..512763242882 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callInStringTemplateRuntime.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callInStringTemplateRuntime.kt.after @@ -5,5 +5,5 @@ fun test() { } fun foo(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArg.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArg.kt.after index 2239bfa74ae1..302743fcb045 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArg.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArg.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(t: T, s: String, function: (T) -> T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArgOnly.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArgOnly.kt.after index 553c9a35f217..bc1713a254c5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArgOnly.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArgOnly.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(function: (T) -> T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/doNotStripPrefix.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/doNotStripPrefix.kt.after index ff79af014c80..47ce30377e50 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/doNotStripPrefix.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/doNotStripPrefix.kt.after @@ -5,6 +5,6 @@ fun isModified(settings: Settings, c: C) = c.foo(settings) class C { fun foo(settings: Settings): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnGroovyType.after.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnGroovyType.after.kt index 647e5a7298b2..6c5933b05b7c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnGroovyType.after.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnGroovyType.after.kt @@ -6,5 +6,5 @@ fun test(): Int { } fun A.foo(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnJavaType.after.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnJavaType.after.kt index 6dc384f5e87b..c51317454535 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnJavaType.after.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnJavaType.after.kt @@ -6,5 +6,5 @@ fun test(): Int? { } fun A.foo(i: Int, s: String): Int? { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTrait.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTrait.kt.after index b92f694df3f0..69670d94aaa1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTrait.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTrait.kt.after @@ -7,5 +7,5 @@ fun test(t: T) { } fun T.foo(s: String, i: Int): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTypeFromAnotherPackage.after.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTypeFromAnotherPackage.after.kt index d3805eb895ba..40e0474bda49 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTypeFromAnotherPackage.after.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/extensionFunOnTypeFromAnotherPackage.after.kt @@ -11,5 +11,5 @@ class X { } fun package2.A.foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funExtraArgs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funExtraArgs.kt.after index f5ab2455eaee..d61a8a0388c2 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funExtraArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funExtraArgs.kt.after @@ -4,7 +4,7 @@ class A(val n: T) { fun foo(a: Int): A = throw Exception() fun foo(a: T, s: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funMissingArgs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funMissingArgs.kt.after index 2193368c40d7..020eb7ee9179 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funMissingArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funMissingArgs.kt.after @@ -4,7 +4,7 @@ class A(val n: T) { fun foo(i: Int, s: String): A = throw Exception() fun foo(i: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnClassObject.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnClassObject.kt.after index ce179af6794f..cfe62ceb2287 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnClassObject.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnClassObject.kt.after @@ -3,7 +3,7 @@ class A(val n: T) { companion object { fun foo(i: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibObject.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibObject.kt.after index 42f2dc239c8b..df4afee592dd 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibObject.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibObject.kt.after @@ -6,5 +6,5 @@ fun test() { } fun Unit.foo(i: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibType.kt.after index bf3390db23cd..ac13ee82873e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnLibType.kt.after @@ -8,5 +8,5 @@ fun test() { } fun Int.foo(a: A): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserObject.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserObject.kt.after index 2bc2784f9bbf..13258dfcd340 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserObject.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserObject.kt.after @@ -2,7 +2,7 @@ object A { fun foo(i: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserType.kt.after index 6ff907323fac..fff27a05b763 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithDeclarations.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithDeclarations.kt.after index 8981c34bdb20..ad49e54aa5c8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithDeclarations.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithDeclarations.kt.after @@ -5,7 +5,7 @@ class F { } fun foo(i: Int, s: String): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithTypeParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithTypeParams.kt.after index a377ae1309c5..ef50047dcd36 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithTypeParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funOnUserTypeWithTypeParams.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(u: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funPlacement.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funPlacement.kt.after index 0596e7a1c130..f6fda652afd5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funPlacement.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funPlacement.kt.after @@ -8,7 +8,7 @@ class A { } private fun foo(): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } fun bar() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithExplicitParamNamesOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithExplicitParamNamesOnUserType.kt.after index 97dbc955aa7c..e7e832ab7600 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithExplicitParamNamesOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithExplicitParamNamesOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(abc: T, ghi: A, def: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableParamType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableParamType.kt.after index c7cbc57fa52f..61acf2f0abd2 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableParamType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableParamType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(t: T?): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableType.kt.after index 1b7beacd05fc..4b33d8f486b1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(t: T): A? { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableTypeParameter.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableTypeParameter.kt.after index a84997924fb2..076fd0eceb04 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableTypeParameter.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithNullableTypeParameter.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(t: T): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithPackageName.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithPackageName.kt.after index 3e79f962f099..e7f4bf13f022 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithPackageName.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/funWithPackageName.kt.after @@ -7,5 +7,5 @@ fun test() { } fun foo(i: Int, s: String) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalType.kt.after index 6511dbd18f64..2e9e9484e865 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalType.kt.after @@ -5,5 +5,5 @@ fun foo(block: (Int) -> String) { } fun bar(block: (Int) -> String) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalTypeInReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalTypeInReceiver.kt.after index b693899465c7..05919f50befa 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalTypeInReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/functionalTypeInReceiver.kt.after @@ -5,5 +5,5 @@ fun foo(block: (Int) -> String) { } fun ((P1) -> R).bar() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inLambda.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inLambda.kt.after index 885f9043da0e..d743f4bac240 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inLambda.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inLambda.kt.after @@ -7,5 +7,5 @@ fun test() { } fun foo(): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inconsistentTypes.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inconsistentTypes.kt.after index 25c47ebd57e6..d06ed7734a5f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inconsistentTypes.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/inconsistentTypes.kt.after @@ -3,7 +3,7 @@ class A(val n: T) { fun foo(s: String, t: T): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt index 454ee8a96a13..ce36696205dd 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/kt10983.kt @@ -1,10 +1,8 @@ // "Create function" "false" // ERROR: A 'return' expression required in a function with a block body ('{...}') -// ERROR: Cannot infer a type for this parameter. Please specify it explicitly. -// ERROR: Cannot infer a type for this parameter. Please specify it explicitly. // ERROR: Expression 'return groupsByLength.values.firstOrNull { group -> {group.size == maximumSizeOfGroup} }' cannot be a selector (occur after a dot) -// ERROR: Unresolved reference: groupBy -// ERROR: Unresolved reference: it +// ERROR: Type inference failed: inline fun Iterable.firstOrNull(predicate: (T) -> Boolean): T?
cannot be applied to
receiver: Collection> arguments: ((List) -> () -> Boolean)
+// ERROR: Type mismatch: inferred type is (List) -> () -> Boolean but (List) -> Boolean was expected // ERROR: Unresolved reference: maximumSizeOfGroup fun doSomethingStrangeWithCollection(collection: Collection): Collection? { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/localFunNoReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/localFunNoReceiver.kt.after index b2ef699600c8..3e05bc43eb0e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/localFunNoReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/localFunNoReceiver.kt.after @@ -2,7 +2,7 @@ fun test() { fun foo(i: Int, s: String): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } fun nestedTest(): Int { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberFunNoReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberFunNoReceiver.kt.after index a0c87743d659..16f5b8ad58bf 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberFunNoReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberFunNoReceiver.kt.after @@ -7,7 +7,7 @@ class A { } private fun foo(i: Int, s: String): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberValDelegateRuntime.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberValDelegateRuntime.kt.after index ef6af47d0142..21ba43063202 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberValDelegateRuntime.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberValDelegateRuntime.kt.after @@ -6,6 +6,6 @@ class A(val t: T) { val x: A by foo(t, "") private fun foo(t: T, s: String): ReadOnlyProperty, A> { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberVarDelegateRuntime.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberVarDelegateRuntime.kt.after index ab8b64c791ae..928fdad58ccb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberVarDelegateRuntime.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/memberVarDelegateRuntime.kt.after @@ -6,6 +6,6 @@ class A(val t: T) { var x: A by foo(t, "") private fun foo(t: T, s: String): ReadWriteProperty, A> { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/objectMemberFunNoReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/objectMemberFunNoReceiver.kt.after index ff3e9b09417c..c7e71553b85a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/objectMemberFunNoReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/objectMemberFunNoReceiver.kt.after @@ -7,7 +7,7 @@ class A { } private fun foo(i: Int, s: String): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/privateForMembers.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/privateForMembers.kt.after index 24a0e1fafdff..13bc0da3702d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/privateForMembers.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/privateForMembers.kt.after @@ -5,6 +5,6 @@ class A { } private fun foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/qualifiedCallInStringTemplateRuntime.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/qualifiedCallInStringTemplateRuntime.kt.after index 4807aeb497ed..8330c78d3089 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/qualifiedCallInStringTemplateRuntime.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/qualifiedCallInStringTemplateRuntime.kt.after @@ -2,7 +2,7 @@ class A { fun foo(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithIs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithIs.kt.after index d5e7e25aa5bb..f303d54fbc78 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithIs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithIs.kt.after @@ -5,5 +5,5 @@ fun test(o: Any) { } fun foo(o: String) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithNullCheck.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithNullCheck.kt.after index 1c16dad0e871..656dff6fb345 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithNullCheck.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/smartCastWithNullCheck.kt.after @@ -6,5 +6,5 @@ fun test(s: String?) { } fun foo(s: String) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/stripPrefix.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/stripPrefix.kt.after index b0e1a0dabf0b..d9f351011a74 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/stripPrefix.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/stripPrefix.kt.after @@ -5,6 +5,6 @@ fun isModified(setOptions: SetOptions, c: C) = c.foo(setOptions) class C { fun foo(options: SetOptions): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInClass.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInClass.kt.after index 80e02a10c540..9cc728a5e5e0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInClass.kt.after @@ -6,6 +6,6 @@ class A(val n: T) { } private fun foo(i: Int, s: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInExtension.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInExtension.kt.after index 5f5acac185ce..d8f6bec55e83 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInExtension.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInExtension.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { fun foo(i: Int, s: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass1.kt.after index 748b419904da..2aaf326e9e05 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass1.kt.after @@ -7,7 +7,7 @@ class A(val n: T) { } private fun foo(i: Int, s: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass2.kt.after index 8d2aaf7154da..c488f2353a53 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/thisInNestedClass2.kt.after @@ -8,6 +8,6 @@ class A(val n: T) { } private fun foo(i: Int, s: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunNoReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunNoReceiver.kt.after index e2ec624995e8..96a94cac9ac1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunNoReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunNoReceiver.kt.after @@ -5,5 +5,5 @@ fun test(): Int { } fun foo(i: Int, s: String): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunPlacement.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunPlacement.kt.after index cdd74c4c5642..135e17671be9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunPlacement.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/topLevelFunPlacement.kt.after @@ -7,7 +7,7 @@ fun test() { } fun foo(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } fun bar() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/callWithStarProjection.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/callWithStarProjection.kt.after index a2166043dd59..6e24ed17482b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/callWithStarProjection.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/callWithStarProjection.kt.after @@ -5,5 +5,5 @@ fun test(): Int { } fun foo(i: Int, t: T): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMember.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMember.kt.after index 7bdf6431cc83..4d11570753c1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMember.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMember.kt.after @@ -2,7 +2,7 @@ class B(val t: T) { fun foo(u: U, v: V): U { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberPartialSubstitution.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberPartialSubstitution.kt.after index 3dceadaa9812..9ec75c6c776b 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberPartialSubstitution.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberPartialSubstitution.kt.after @@ -2,7 +2,7 @@ class B(val t: T) { fun foo(i: Int, u: U): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberWithReceiverArg.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberWithReceiverArg.kt.after index 7bdf6431cc83..4d11570753c1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberWithReceiverArg.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberWithReceiverArg.kt.after @@ -2,7 +2,7 @@ class B(val t: T) { fun foo(u: U, v: V): U { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extension.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extension.kt.after index f27fb8a5b0b5..8d7ac9be2159 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extension.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extension.kt.after @@ -8,5 +8,5 @@ class A(val items: List) { } fun List.foo(t: T, u: U): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionPartialSubstitution.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionPartialSubstitution.kt.after index 7cd7196a86cb..175647c3c957 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionPartialSubstitution.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionPartialSubstitution.kt.after @@ -8,5 +8,5 @@ class A(val items: List) { } fun List.foo(t: T, s: String): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithReceiverArg.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithReceiverArg.kt.after index f27fb8a5b0b5..8d7ac9be2159 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithReceiverArg.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithReceiverArg.kt.after @@ -8,5 +8,5 @@ class A(val items: List) { } fun List.foo(t: T, u: U): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithTypeParameterAsReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithTypeParameterAsReceiver.kt.after index c32294b75f48..41444a9e5c25 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithTypeParameterAsReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/extensionWithTypeParameterAsReceiver.kt.after @@ -4,5 +4,5 @@ fun foo(t: T) { } fun T.bar() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiver.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiver.kt.after index cba0f090454a..777c5a8e839d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiver.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiver.kt.after @@ -5,5 +5,5 @@ fun test(): Int { } fun foo(u: U, t: T): U { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverExtraArgs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverExtraArgs.kt.after index 372b2cd161c7..6711ba917d55 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverExtraArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverExtraArgs.kt.after @@ -5,5 +5,5 @@ fun test(): Int { } fun foo(u: U, t: T): U { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverLongName.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverLongName.kt.after index cba0f090454a..777c5a8e839d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverLongName.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverLongName.kt.after @@ -5,5 +5,5 @@ fun test(): Int { } fun foo(u: U, t: T): U { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverPartialSubstitution.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverPartialSubstitution.kt.after index 41d7c2c3a740..486f2c110bdf 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverPartialSubstitution.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/noReceiverPartialSubstitution.kt.after @@ -5,5 +5,5 @@ fun test(): Int { } fun foo(t: T, s: String): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unitFun.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unitFun.kt.after index d3dbca10e0bf..0baf8e7f28eb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unitFun.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unitFun.kt.after @@ -5,5 +5,5 @@ fun test() { } fun foo(i: Int, s: String) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unknownType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unknownType.kt.after index dd76ea3f879f..37b4f57ab86e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unknownType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unknownType.kt.after @@ -3,7 +3,7 @@ class A(val n: T) { fun foo(s: Any, t: T): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unresolvedSupertype.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unresolvedSupertype.kt.after index 756616f8c43f..2f3859c35152 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unresolvedSupertype.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/unresolvedSupertype.kt.after @@ -3,7 +3,7 @@ class A: B { fun foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionNoReceiverInCallableRef.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionNoReceiverInCallableRef.kt.after index 83f1eb667cd0..0fdc6a1c701e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionNoReceiverInCallableRef.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionNoReceiverInCallableRef.kt.after @@ -5,7 +5,7 @@ fun consume(s: String) {} fun test() { fun foo(i: Int): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } consume(1.map(::foo)) } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionWithReceiverInCallableRef.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionWithReceiverInCallableRef.kt.after index 58922ba709ce..39d08d986a59 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionWithReceiverInCallableRef.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionWithReceiverInCallableRef.kt.after @@ -9,5 +9,5 @@ fun test() { } fun Int.foo(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/noExpectedReturnType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/noExpectedReturnType.kt.after index 3dcb82601468..b01beaca77c8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/noExpectedReturnType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/noExpectedReturnType.kt.after @@ -3,7 +3,7 @@ fun T.map(f: (T) -> U) = f(this) fun test() { fun foo(i: Int): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } 1.map(::foo) } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/nonExtensionWithReceiverInCallableRef.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/nonExtensionWithReceiverInCallableRef.kt.after index c0ce4f55868c..817be3b5b6b0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/nonExtensionWithReceiverInCallableRef.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/nonExtensionWithReceiverInCallableRef.kt.after @@ -9,5 +9,5 @@ fun test() { } fun Int.foo(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/withExpectedReturnType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/withExpectedReturnType.kt.after index cb02d803edee..30dbe9eea150 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/withExpectedReturnType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/callableReferences/withExpectedReturnType.kt.after @@ -5,7 +5,7 @@ fun consume(s: String) {} fun test() { fun foo(i: Int): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } consume(1.map(::foo)) } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage1.kt.after index 7f2bea156097..c5938bbb3009 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage1.kt.after @@ -4,7 +4,7 @@ class Foo { operator fun component2(): Int { return 0 } operator fun component3(): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } fun foo() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage2.kt.after index de8ae858edda..aa8036dbda61 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage2.kt.after @@ -4,7 +4,7 @@ class Foo { operator fun component2(): Int { return 0 } operator fun component3(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } fun foo() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt index 2044476e3ff0..7ba63aca15e3 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt @@ -3,12 +3,12 @@ class FooIterator { operator fun hasNext(): Boolean { return false } operator fun next(): Any { - throw UnsupportedOperationException("not implemented") + TODO("not implemented") } } class Foo { operator fun iterator(): FooIterator { - throw UnsupportedOperationException("not implemented") + TODO("not implemented") } } operator fun Any.component1(): Int { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt.after index d6cdfdce231e..33596bf7a389 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage3.kt.after @@ -3,12 +3,12 @@ class FooIterator { operator fun hasNext(): Boolean { return false } operator fun next(): Any { - throw UnsupportedOperationException("not implemented") + TODO("not implemented") } } class Foo { operator fun iterator(): FooIterator { - throw UnsupportedOperationException("not implemented") + TODO("not implemented") } } operator fun Any.component1(): Int { @@ -19,5 +19,5 @@ fun foo() { } operator fun Any.component2(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/val.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/val.kt.after index f9e33ef0ae1f..6b9274bb3f28 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/val.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/val.kt.after @@ -3,7 +3,7 @@ import kotlin.reflect.KProperty // "Create member function 'getValue'" "true" class F { operator fun getValue(x: X, property: KProperty<*>): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/var.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/var.kt.after index f84762cb756a..138a82442046 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/var.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/var.kt.after @@ -3,11 +3,11 @@ import kotlin.reflect.KProperty // "Create member function 'getValue', function 'setValue'" "true" class F { operator fun getValue(x: X, property: KProperty<*>): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } operator fun setValue(x: X, property: KProperty<*>, i: Int) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingGet.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingGet.kt.after index 7bfccf79cd42..bc72de1fec49 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingGet.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingGet.kt.after @@ -5,7 +5,7 @@ class F { operator fun setValue(x: X, property: KProperty<*>, i: Int) { } operator fun getValue(x: X, property: KProperty<*>): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingSet.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingSet.kt.after index fb23af9afad7..b0f9be1c6799 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingSet.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/delegateAccessors/varMissingSet.kt.after @@ -5,7 +5,7 @@ class F { operator fun getValue(x: X, property: KProperty<*>): Int = 1 operator fun setValue(x: X, property: KProperty<*>, i: Int) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage1.kt.after index 7a45cbc0daa4..013d33481067 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage1.kt.after @@ -6,6 +6,6 @@ class Foo { } private operator fun get(s: String): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage10.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage10.kt.after index 6604a5b05ca7..3e6cd272f954 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage10.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage10.kt.after @@ -6,6 +6,6 @@ class Foo { } private operator fun get(s: String, w: T): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage11.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage11.kt.after index 8a04114aa2be..33703f574835 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage11.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage11.kt.after @@ -2,7 +2,7 @@ class Foo { operator fun get(s: String, w: T): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage12.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage12.kt.after index 9a391b60e1f1..f15fba44794f 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage12.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage12.kt.after @@ -2,7 +2,7 @@ class Foo { operator fun get(s: String, w: T): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage13.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage13.kt.after index 9a353ac8681f..b1a892c2e3a1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage13.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage13.kt.after @@ -10,6 +10,6 @@ class Foo { } private operator fun get(s: String, w: ArrayList): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage2.kt.after index 2806733b1e82..70945c1ea3cd 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage2.kt.after @@ -6,5 +6,5 @@ fun x (y: Any) { } operator fun Any.get(s: String): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage3.kt.after index ba41fba8f25b..d67a00cbdc48 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage3.kt.after @@ -6,6 +6,6 @@ class Foo { } private operator fun get(s: String): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage4.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage4.kt.after index d92e03c2cea4..7f2a573f7261 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage4.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage4.kt.after @@ -6,6 +6,6 @@ class Foo> { } private operator fun get(s: String): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage5.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage5.kt.after index 636d944c8a24..41c8c998f4e8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage5.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage5.kt.after @@ -6,6 +6,6 @@ class Foo { } private operator fun get(s: String, w: Iterable): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage7.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage7.kt.after index b5d99f0851ba..899f706e012a 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage7.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage7.kt.after @@ -8,6 +8,6 @@ class Foo { } private operator fun get(s: String, w: ArrayList, v: T1): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage8.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage8.kt.after index 3a67b5434bae..748cd41c746d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage8.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage8.kt.after @@ -8,6 +8,6 @@ class Foo { } private operator fun get(s: String, w: T): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage9.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage9.kt.after index 8b3a37ed0dad..a7e402d7c2eb 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage9.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/get/createGetFromUsage9.kt.after @@ -8,6 +8,6 @@ class Foo { } private operator fun get(s: String, w: S): S { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage1.kt.after index 558a379be211..5b95242ac016 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage1.kt.after @@ -5,7 +5,7 @@ class FooIterator { } operator fun hasNext(): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } class Foo { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage2.kt.after index 7afe5dd82490..0ccf3a2f8619 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage2.kt.after @@ -5,7 +5,7 @@ class FooIterator { } operator fun hasNext(): Boolean { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } class Foo { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnLibType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnLibType.kt.after index b1c40b968c61..69540a9f16c8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnLibType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnLibType.kt.after @@ -8,5 +8,5 @@ fun test(): A { } operator fun Int.invoke(i: Int, s: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserType.kt.after index d5035c23ea2d..8d4b042102c8 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { operator fun invoke(t: T, s: String): B { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserTypeWithTypeParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserTypeWithTypeParams.kt.after index fc56c7101155..bbf15f19dd32 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserTypeWithTypeParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeOnUserTypeWithTypeParams.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { operator fun invoke(u: T, s: String): B { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeWithExplicitParamNamesOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeWithExplicitParamNamesOnUserType.kt.after index 51dc478854d8..6dbb7480bd12 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeWithExplicitParamNamesOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/invoke/invokeWithExplicitParamNamesOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { operator fun invoke(abc: T, ghi: A, def: String): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage1.kt.after index 428bac8173f0..a5dc06a211d4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage1.kt.after @@ -1,7 +1,7 @@ // "Create member function 'iterator'" "true" class Foo { operator fun iterator(): Iterator { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage2.kt.after index 8a2d4be62eca..d071dafa27c0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage2.kt.after @@ -1,7 +1,7 @@ // "Create member function 'iterator'" "true" class Foo { operator fun iterator(): Iterator { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt index 1b2c310d9d29..0f0cf4d7d3d1 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt @@ -4,7 +4,7 @@ class FooIterator { } class Foo { operator fun iterator(): FooIterator { - throw UnsupportedOperationException("not implemented") + TODO("not implemented") } } operator fun Any.component1(): Int { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt.after index 467be063edbf..25bfe3fc02d9 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/iterator/createIteratorFromUsage3.kt.after @@ -3,12 +3,12 @@ class FooIterator { operator fun hasNext(): Boolean { return false } operator fun next(): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } class Foo { operator fun iterator(): FooIterator { - throw UnsupportedOperationException("not implemented") + TODO("not implemented") } } operator fun Any.component1(): Int { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage1.kt.after index db247c274560..463652920a15 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage1.kt.after @@ -3,7 +3,7 @@ class FooIterator { operator fun hasNext(): Boolean { return false } operator fun next(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } class Foo { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage2.kt.after index 38cdae353ccb..04199a313ab4 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage2.kt.after @@ -3,7 +3,7 @@ class FooIterator { operator fun hasNext(): Boolean { return false } operator fun next(): T { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } class Foo { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage1.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage1.kt.after index 6e54a208f27c..5564b879af4c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage1.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage1.kt.after @@ -6,6 +6,6 @@ class Foo { } private operator fun set(s: String, w: T, value: T) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage2.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage2.kt.after index 2f4f589cca8e..99101bccdf41 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage2.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/createSetFromUsage2.kt.after @@ -10,5 +10,5 @@ class Foo { } operator fun Any.set(s: String, w: ArrayList, value: ArrayList) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/setterForIncrement.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/setterForIncrement.kt.after index 8189d0c7195c..9784659a0eef 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/setterForIncrement.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/set/setterForIncrement.kt.after @@ -3,7 +3,7 @@ class A { operator fun get(s: String): Int = 1 operator fun set(s: String, value: Int) { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/incOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/incOnUserType.kt.after index e42c3cc1babc..1baed4325cea 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/incOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/incOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { operator fun inc(): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusMissingArgs.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusMissingArgs.kt.after index 835a899f8e7e..2a3a0c49107c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusMissingArgs.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusMissingArgs.kt.after @@ -4,7 +4,7 @@ class A(val n: T) { operator fun minus(n: Int): A = throw Exception() operator fun unaryMinus(): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnLibType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnLibType.kt.after index cd26a3da5d6d..a8545c17c77e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnLibType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnLibType.kt.after @@ -6,5 +6,5 @@ fun test() { } operator fun Boolean.unaryMinus(): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserType.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserType.kt.after index 12aaa39a31e2..a84642950d21 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserType.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserType.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { operator fun unaryMinus(): Any { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserTypeWithTypeParams.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserTypeWithTypeParams.kt.after index 33ececf9fc5f..c7eb6a998fb5 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserTypeWithTypeParams.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusOnUserTypeWithTypeParams.kt.after @@ -2,7 +2,7 @@ class A(val n: T) { operator fun unaryMinus(): A { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nonIdentifier.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nonIdentifier.kt index 5a0e3abf205d..3e6ab6dadd59 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nonIdentifier.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/localVariable/nonIdentifier.kt @@ -2,7 +2,7 @@ // ACTION: Create extension function 'minus' // ACTION: Create member function 'minus' // ACTION: Replace overloaded operator with function call -// ERROR: Unresolved reference: - +// ERROR: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun BigDecimal.minus(other: BigDecimal): BigDecimal defined in kotlin
@InlineOnly public operator inline fun BigInteger.minus(other: BigInteger): BigInteger defined in kotlin
public operator fun Iterable.minus(elements: Array): List defined in kotlin.collections
public operator fun Iterable.minus(elements: Iterable): List defined in kotlin.collections
public operator fun Iterable.minus(elements: Sequence): List defined in kotlin.collections
public operator fun Iterable
.minus(element: A): List defined in kotlin.collections
public operator fun Set.minus(elements: Array): Set defined in kotlin.collections
public operator fun Set.minus(elements: Iterable): Set defined in kotlin.collections
public operator fun Set.minus(elements: Sequence): Set defined in kotlin.collections
public operator fun Set
.minus(element: A): Set defined in kotlin.collections
public operator fun Sequence.minus(elements: Array): Sequence defined in kotlin.sequences
public operator fun Sequence.minus(elements: Iterable): Sequence defined in kotlin.sequences
public operator fun Sequence.minus(elements: Sequence): Sequence defined in kotlin.sequences
public operator fun Sequence
.minus(element: A): Sequence defined in kotlin.sequences class A fun bar() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nonIdentifier.kt b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nonIdentifier.kt index b2254a78d1ea..f98433cb1762 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nonIdentifier.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createVariable/parameter/nonIdentifier.kt @@ -2,7 +2,7 @@ // ACTION: Create extension function 'minus' // ACTION: Create member function 'minus' // ACTION: Replace overloaded operator with function call -// ERROR: Unresolved reference: - +// ERROR: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
@InlineOnly public operator inline fun BigDecimal.minus(other: BigDecimal): BigDecimal defined in kotlin
@InlineOnly public operator inline fun BigInteger.minus(other: BigInteger): BigInteger defined in kotlin
public operator fun Iterable.minus(elements: Array): List defined in kotlin.collections
public operator fun Iterable.minus(elements: Iterable): List defined in kotlin.collections
public operator fun Iterable.minus(elements: Sequence): List defined in kotlin.collections
public operator fun Iterable
.minus(element: A): List defined in kotlin.collections
public operator fun Set.minus(elements: Array): Set defined in kotlin.collections
public operator fun Set.minus(elements: Iterable): Set defined in kotlin.collections
public operator fun Set.minus(elements: Sequence): Set defined in kotlin.collections
public operator fun Set
.minus(element: A): Set defined in kotlin.collections
public operator fun Sequence.minus(elements: Array): Sequence defined in kotlin.sequences
public operator fun Sequence.minus(elements: Iterable): Sequence defined in kotlin.sequences
public operator fun Sequence.minus(elements: Sequence): Sequence defined in kotlin.sequences
public operator fun Sequence
.minus(element: A): Sequence defined in kotlin.sequences class A fun bar() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt b/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt index da7ffb185dd1..47b5b8fbc739 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt @@ -1,4 +1,5 @@ // "Implement abstract class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION private abstract class Base { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt.after index 03606d53162f..adf07835cf5e 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/abstract.kt.after @@ -1,4 +1,5 @@ // "Implement abstract class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION private abstract class Base { @@ -14,6 +15,6 @@ private class BaseImpl : Base() { } override fun toInt(arg: String): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt b/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt index 0afb5349d329..0c1e77047272 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt @@ -1,4 +1,5 @@ // "Implement abstract class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION class Container { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt.after index e2459dbd4db4..83535db97ecd 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/inner.kt.after @@ -1,4 +1,5 @@ // "Implement abstract class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION class Container { @@ -8,7 +9,7 @@ class Container { inner class BaseImpl : Base() { override fun foo(): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt b/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt index 3937ebf6d99a..f3ffa9399749 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt @@ -1,4 +1,5 @@ // "Implement interface" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION interface Base { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt.after index a80d329c9bae..8a022ab5dbcf 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/interface.kt.after @@ -1,4 +1,5 @@ // "Implement interface" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION interface Base { @@ -9,6 +10,6 @@ interface Base { class BaseImpl : Base { override fun foo(x: Int): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt b/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt index ebd7be1ba0bc..b56f2f7ba978 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt @@ -1,4 +1,5 @@ // "Implement interface" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION class Container { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt.after index 49b2a5510c54..a612ae3f0073 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/nested.kt.after @@ -1,4 +1,5 @@ // "Implement interface" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION class Container { @@ -19,7 +20,7 @@ class BaseImpl : Container.Base { get() = throw UnsupportedOperationException() override fun bar(z: Int): String { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt index 93398b39f75c..1d360339ce5d 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt @@ -1,4 +1,5 @@ // "Implement sealed class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION sealed class Base { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt.after index 54f15a196c0c..c2e37d06e840 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealed.kt.after @@ -1,11 +1,12 @@ // "Implement sealed class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION sealed class Base { abstract fun foo(): Int class BaseImpl : Base() { override fun foo(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt index ce94ccee4f2a..8b89b7c62788 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt @@ -1,4 +1,5 @@ // "Implement sealed class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION sealed class Base { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt.after index 670ef68551d8..8dcd81dfea5c 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/implement/sealedWithConflict.kt.after @@ -1,4 +1,5 @@ // "Implement sealed class" "true" +// WITH_RUNTIME // SHOULD_BE_AVAILABLE_AFTER_EXECUTION sealed class Base { @@ -10,7 +11,7 @@ sealed class Base { class BaseImpl1 : Base() { override fun foo(): Int { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } } \ No newline at end of file diff --git a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt index 843d7360844a..e38b4d910c65 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt @@ -1,4 +1,5 @@ // "Implement members" "true" +// WITH_RUNTIME interface I { fun foo() } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt.after index fdf027fdfc11..154ccd2b23d0 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMember.kt.after @@ -1,10 +1,11 @@ // "Implement members" "true" +// WITH_RUNTIME interface I { fun foo() } class A : I { override fun foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt index be78ca4258b6..2d1812e11805 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt @@ -1,4 +1,5 @@ // "Implement members" "true" +// WITH_RUNTIME abstract class A { abstract fun foo() } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt.after index 6c41c615b1cc..d549b5684a37 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/override/implementMemberFromAbstractClass.kt.after @@ -1,10 +1,11 @@ // "Implement members" "true" +// WITH_RUNTIME abstract class A { abstract fun foo() } class B : A() { override fun foo() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt index ebc3f977d408..4ea99e2756db 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt @@ -1,4 +1,5 @@ // "Let 'B' implement interface 'A'" "true" +// WITH_RUNTIME package let.implement fun bar() { diff --git a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt.after b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt.after index 839798a4e8fa..5af7155d8114 100644 --- a/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt.after +++ b/plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/letClassImplementInterface.kt.after @@ -1,4 +1,5 @@ // "Let 'B' implement interface 'A'" "true" +// WITH_RUNTIME package let.implement fun bar() { @@ -14,6 +15,6 @@ interface A { } class B : A { override fun gav() { - throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. + TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } } \ No newline at end of file