Remove mod function deprecation tests
#KT-26654
This commit is contained in:
Generated
-25
@@ -15366,11 +15366,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorOnExplicitModCall.kt")
|
||||
public void testErrorOnExplicitModCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/errorOnExplicitModCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forbiddenModOperatorConvention.kt")
|
||||
public void testForbiddenModOperatorConvention() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/forbiddenModOperatorConvention.kt");
|
||||
@@ -15391,16 +15386,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noOperatorRemFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningForModFromBuiltinsWhenApi1_0_after.kt")
|
||||
public void testNoWarningForModFromBuiltinsWhenApi1_0_after() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noWarningForModFromBuiltinsWhenApi1_0_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningForModFromBuiltinsWhenApi1_0_before.kt")
|
||||
public void testNoWarningForModFromBuiltinsWhenApi1_0_before() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noWarningForModFromBuiltinsWhenApi1_0_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberRemConversions.kt")
|
||||
public void testNumberRemConversions() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/numberRemConversions.kt");
|
||||
@@ -15465,16 +15450,6 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
public void testResolveToModWhenNoOperatorRemFeature() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/resolveToModWhenNoOperatorRemFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("warningOnExplicitModCall1_1.kt")
|
||||
public void testWarningOnExplicitModCall1_1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/warningOnExplicitModCall1_1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("warningOnExplicitModCall1_2.kt")
|
||||
public void testWarningOnExplicitModCall1_2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/warningOnExplicitModCall1_2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/operatorsOverloading")
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
fun test() {
|
||||
1.mod(3)
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun test() {
|
||||
1.<!DEPRECATION_ERROR!>mod<!>(3)
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
Vendored
-48
@@ -1,48 +0,0 @@
|
||||
// !LANGUAGE: +ProhibitOperatorMod
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !API_VERSION: 1.0
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE, -EXTENSION_SHADOWED_BY_MEMBER
|
||||
|
||||
class Foo {
|
||||
operator fun rem(x: Int): Foo = Foo()
|
||||
}
|
||||
|
||||
class Bar {
|
||||
operator fun remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
companion object {
|
||||
operator fun rem(x: Int) {}
|
||||
operator fun Int.rem(x: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
operator fun Baz.rem(x: Int) {}
|
||||
|
||||
fun local() {
|
||||
operator fun Int.rem(x: Int) {}
|
||||
operator fun String.remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class WithMod {
|
||||
operator fun mod(other: WithMod) = this
|
||||
|
||||
fun test() {
|
||||
val a = this <!INAPPLICABLE_CANDIDATE!>%<!> this
|
||||
var b = this.mod(this)
|
||||
<!UNRESOLVED_REFERENCE!>b %= this<!>
|
||||
}
|
||||
}
|
||||
|
||||
fun noOverflow() {
|
||||
(-1).mod(5)
|
||||
}
|
||||
|
||||
fun builtIns(b: Byte, s: Short) {
|
||||
var a = 1 % 2
|
||||
a %= 3
|
||||
1.mod(2)
|
||||
b % s
|
||||
1.0 % 2.0
|
||||
}
|
||||
Vendored
-48
@@ -1,48 +0,0 @@
|
||||
// !LANGUAGE: +ProhibitOperatorMod
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !API_VERSION: 1.0
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE, -EXTENSION_SHADOWED_BY_MEMBER
|
||||
|
||||
class Foo {
|
||||
operator fun rem(x: Int): Foo = Foo()
|
||||
}
|
||||
|
||||
class Bar {
|
||||
operator fun remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
companion object {
|
||||
operator fun rem(x: Int) {}
|
||||
operator fun Int.rem(x: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
operator fun Baz.rem(x: Int) {}
|
||||
|
||||
fun local() {
|
||||
operator fun Int.rem(x: Int) {}
|
||||
operator fun String.remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class WithMod {
|
||||
<!FORBIDDEN_BINARY_MOD!>operator<!> fun mod(other: WithMod) = this
|
||||
|
||||
fun test() {
|
||||
val a = this <!OI;FORBIDDEN_BINARY_MOD_AS_REM!>%<!> <!NI;TYPE_MISMATCH!>this<!>
|
||||
var b = this.mod(this)
|
||||
<!NI;TYPE_MISMATCH!>b <!OI;FORBIDDEN_BINARY_MOD_AS_REM!>%=<!> <!NI;TYPE_MISMATCH!>this<!><!>
|
||||
}
|
||||
}
|
||||
|
||||
fun noOverflow() {
|
||||
(-1).mod(5)
|
||||
}
|
||||
|
||||
fun builtIns(b: Byte, s: Short) {
|
||||
var a = 1 % 2
|
||||
a <!NI;DEBUG_INFO_UNRESOLVED_WITH_TARGET, NI;UNRESOLVED_REFERENCE!>%=<!> 3
|
||||
1.mod(2)
|
||||
b % <!NI;TYPE_MISMATCH!>s<!>
|
||||
1.0 % <!NI;CONSTANT_EXPECTED_TYPE_MISMATCH!>2.0<!>
|
||||
}
|
||||
Vendored
-47
@@ -1,47 +0,0 @@
|
||||
package
|
||||
|
||||
public fun builtIns(/*0*/ b: kotlin.Byte, /*1*/ s: kotlin.Short): kotlin.Unit
|
||||
public fun local(): kotlin.Unit
|
||||
public fun noOverflow(): kotlin.Unit
|
||||
public operator fun Baz.rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
|
||||
public final class Bar {
|
||||
public constructor Bar()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun remAssign(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Baz {
|
||||
public constructor Baz()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public companion object Companion {
|
||||
private constructor Companion()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
public final operator fun kotlin.Int.rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
}
|
||||
|
||||
public final class Foo {
|
||||
public constructor Foo()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun rem(/*0*/ x: kotlin.Int): Foo
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class WithMod {
|
||||
public constructor WithMod()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun mod(/*0*/ other: WithMod): WithMod
|
||||
public final fun test(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Vendored
-48
@@ -1,48 +0,0 @@
|
||||
// !LANGUAGE: -ProhibitOperatorMod
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !API_VERSION: 1.0
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE, -EXTENSION_SHADOWED_BY_MEMBER
|
||||
|
||||
class Foo {
|
||||
operator fun rem(x: Int): Foo = Foo()
|
||||
}
|
||||
|
||||
class Bar {
|
||||
operator fun remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
companion object {
|
||||
operator fun rem(x: Int) {}
|
||||
operator fun Int.rem(x: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
operator fun Baz.rem(x: Int) {}
|
||||
|
||||
fun local() {
|
||||
operator fun Int.rem(x: Int) {}
|
||||
operator fun String.remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class WithMod {
|
||||
operator fun mod(other: WithMod) = this
|
||||
|
||||
fun test() {
|
||||
val a = this <!INAPPLICABLE_CANDIDATE!>%<!> this
|
||||
var b = this.mod(this)
|
||||
<!UNRESOLVED_REFERENCE!>b %= this<!>
|
||||
}
|
||||
}
|
||||
|
||||
fun noOverflow() {
|
||||
(-1).mod(5)
|
||||
}
|
||||
|
||||
fun builtIns(b: Byte, s: Short) {
|
||||
var a = 1 % 2
|
||||
a %= 3
|
||||
1.mod(2)
|
||||
b % s
|
||||
1.0 % 2.0
|
||||
}
|
||||
Vendored
-48
@@ -1,48 +0,0 @@
|
||||
// !LANGUAGE: -ProhibitOperatorMod
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !API_VERSION: 1.0
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -UNUSED_VARIABLE, -EXTENSION_SHADOWED_BY_MEMBER
|
||||
|
||||
class Foo {
|
||||
operator fun rem(x: Int): Foo = Foo()
|
||||
}
|
||||
|
||||
class Bar {
|
||||
operator fun remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class Baz {
|
||||
companion object {
|
||||
operator fun rem(x: Int) {}
|
||||
operator fun Int.rem(x: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
operator fun Baz.rem(x: Int) {}
|
||||
|
||||
fun local() {
|
||||
operator fun Int.rem(x: Int) {}
|
||||
operator fun String.remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
class WithMod {
|
||||
<!DEPRECATED_BINARY_MOD!>operator<!> fun mod(other: WithMod) = this
|
||||
|
||||
fun test() {
|
||||
val a = this <!OI;DEPRECATED_BINARY_MOD_AS_REM!>%<!> <!NI;TYPE_MISMATCH!>this<!>
|
||||
var b = this.mod(this)
|
||||
<!NI;TYPE_MISMATCH!>b <!OI;DEPRECATED_BINARY_MOD_AS_REM!>%=<!> <!NI;TYPE_MISMATCH!>this<!><!>
|
||||
}
|
||||
}
|
||||
|
||||
fun noOverflow() {
|
||||
(-1).mod(5)
|
||||
}
|
||||
|
||||
fun builtIns(b: Byte, s: Short) {
|
||||
var a = 1 % 2
|
||||
a <!NI;DEBUG_INFO_UNRESOLVED_WITH_TARGET, NI;UNRESOLVED_REFERENCE!>%=<!> 3
|
||||
1.mod(2)
|
||||
b % <!NI;TYPE_MISMATCH!>s<!>
|
||||
1.0 % <!NI;CONSTANT_EXPECTED_TYPE_MISMATCH!>2.0<!>
|
||||
}
|
||||
Vendored
-47
@@ -1,47 +0,0 @@
|
||||
package
|
||||
|
||||
public fun builtIns(/*0*/ b: kotlin.Byte, /*1*/ s: kotlin.Short): kotlin.Unit
|
||||
public fun local(): kotlin.Unit
|
||||
public fun noOverflow(): kotlin.Unit
|
||||
public operator fun Baz.rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
|
||||
public final class Bar {
|
||||
public constructor Bar()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun remAssign(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Baz {
|
||||
public constructor Baz()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
public companion object Companion {
|
||||
private constructor Companion()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
public final operator fun kotlin.Int.rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
}
|
||||
}
|
||||
|
||||
public final class Foo {
|
||||
public constructor Foo()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun rem(/*0*/ x: kotlin.Int): Foo
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class WithMod {
|
||||
public constructor WithMod()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final operator fun mod(/*0*/ other: WithMod): WithMod
|
||||
public final fun test(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !API_VERSION: 1.1
|
||||
|
||||
fun test() {
|
||||
1.mod(3)
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !API_VERSION: 1.1
|
||||
|
||||
fun test() {
|
||||
1.<!DEPRECATION!>mod<!>(3)
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !API_VERSION: 1.2
|
||||
|
||||
fun test() {
|
||||
1.mod(3)
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
// !API_VERSION: 1.2
|
||||
|
||||
fun test() {
|
||||
1.<!DEPRECATION!>mod<!>(3)
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
@@ -15373,11 +15373,6 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorOnExplicitModCall.kt")
|
||||
public void testErrorOnExplicitModCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/errorOnExplicitModCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forbiddenModOperatorConvention.kt")
|
||||
public void testForbiddenModOperatorConvention() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/forbiddenModOperatorConvention.kt");
|
||||
@@ -15398,16 +15393,6 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noOperatorRemFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningForModFromBuiltinsWhenApi1_0_after.kt")
|
||||
public void testNoWarningForModFromBuiltinsWhenApi1_0_after() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noWarningForModFromBuiltinsWhenApi1_0_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningForModFromBuiltinsWhenApi1_0_before.kt")
|
||||
public void testNoWarningForModFromBuiltinsWhenApi1_0_before() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noWarningForModFromBuiltinsWhenApi1_0_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberRemConversions.kt")
|
||||
public void testNumberRemConversions() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/numberRemConversions.kt");
|
||||
@@ -15472,16 +15457,6 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
public void testResolveToModWhenNoOperatorRemFeature() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/resolveToModWhenNoOperatorRemFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("warningOnExplicitModCall1_1.kt")
|
||||
public void testWarningOnExplicitModCall1_1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/warningOnExplicitModCall1_1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("warningOnExplicitModCall1_2.kt")
|
||||
public void testWarningOnExplicitModCall1_2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/warningOnExplicitModCall1_2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/operatorsOverloading")
|
||||
|
||||
Generated
-25
@@ -15368,11 +15368,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/doNotResolveToInapplicableRem.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorOnExplicitModCall.kt")
|
||||
public void testErrorOnExplicitModCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/errorOnExplicitModCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forbiddenModOperatorConvention.kt")
|
||||
public void testForbiddenModOperatorConvention() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/forbiddenModOperatorConvention.kt");
|
||||
@@ -15393,16 +15388,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noOperatorRemFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningForModFromBuiltinsWhenApi1_0_after.kt")
|
||||
public void testNoWarningForModFromBuiltinsWhenApi1_0_after() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noWarningForModFromBuiltinsWhenApi1_0_after.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWarningForModFromBuiltinsWhenApi1_0_before.kt")
|
||||
public void testNoWarningForModFromBuiltinsWhenApi1_0_before() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/noWarningForModFromBuiltinsWhenApi1_0_before.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("numberRemConversions.kt")
|
||||
public void testNumberRemConversions() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/numberRemConversions.kt");
|
||||
@@ -15467,16 +15452,6 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
public void testResolveToModWhenNoOperatorRemFeature() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/resolveToModWhenNoOperatorRemFeature.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("warningOnExplicitModCall1_1.kt")
|
||||
public void testWarningOnExplicitModCall1_1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/warningOnExplicitModCall1_1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("warningOnExplicitModCall1_2.kt")
|
||||
public void testWarningOnExplicitModCall1_2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/operatorRem/warningOnExplicitModCall1_2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/operatorsOverloading")
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// "Replace with 'rem(other)'" "true"
|
||||
|
||||
fun test() {
|
||||
1.<caret>mod(3)
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
// "Replace with 'rem(other)'" "true"
|
||||
|
||||
fun test() {
|
||||
1.rem(3)
|
||||
}
|
||||
@@ -6212,11 +6212,6 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
||||
runTest("idea/testData/quickfix/deprecatedSymbolUsage/replaceCallWithReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("replaceModToRem.kt")
|
||||
public void testReplaceModToRem() throws Exception {
|
||||
runTest("idea/testData/quickfix/deprecatedSymbolUsage/replaceModToRem.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("shortenReferences.kt")
|
||||
public void testShortenReferences() throws Exception {
|
||||
runTest("idea/testData/quickfix/deprecatedSymbolUsage/shortenReferences.kt");
|
||||
|
||||
Reference in New Issue
Block a user