Skip to content

Commit 723c132

Browse files
dimonchik0036Space Team
authored andcommitted
[LC] add test on duplicated no-arg constructor
An explicit `JvmOverloads` constructor should be preferred to a no-arg one ^KT-80656
1 parent ad724ca commit 723c132

19 files changed

+248
-0
lines changed

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/decompiled/JsSymbolLightClassesByFqNameForLibraryTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/decompiled/SymbolLightClassesByFqNameForLibraryTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/decompiled/SymbolLightClassesEqualityByFqNameForLibraryTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/decompiled/SymbolLightClassesParentingByFqNameForLibraryTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/source/JsSymbolLightClassesByFqNameForSourceTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/source/SymbolLightClassesByFqNameForSourceTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/source/SymbolLightClassesEqualityByFqNameForSourceTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

analysis/symbol-light-classes/tests-gen/org/jetbrains/kotlin/light/classes/symbol/source/SymbolLightClassesParentingByFqNameForSourceTestGenerated.java

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public final class Foo /* test.pkg.Foo*/ {
2+
@kotlin.jvm.JvmOverloads()
3+
@test.pkg.B()
4+
public Foo();// .ctor()
5+
6+
@kotlin.jvm.JvmOverloads()
7+
@test.pkg.B()
8+
public Foo(@org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(java.lang.String)
9+
10+
@kotlin.jvm.JvmOverloads()
11+
@test.pkg.B()
12+
public Foo(@org.jetbrains.annotations.NotNull() java.lang.String, int);// .ctor(java.lang.String, int)
13+
14+
@test.pkg.A()
15+
public Foo();// .ctor()
16+
17+
@test.pkg.A()
18+
public Foo(int);// .ctor(int)
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public final class Foo /* test.pkg.Foo*/ {
2+
@kotlin.jvm.JvmOverloads()
3+
@test.pkg.B()
4+
public Foo();// .ctor()
5+
6+
@kotlin.jvm.JvmOverloads()
7+
@test.pkg.B()
8+
public Foo(@org.jetbrains.annotations.NotNull() @org.jetbrains.annotations.NotNull() java.lang.String);// .ctor(@org.jetbrains.annotations.NotNull() java.lang.String)
9+
10+
@kotlin.jvm.JvmOverloads()
11+
@test.pkg.B()
12+
public Foo(@org.jetbrains.annotations.NotNull() @org.jetbrains.annotations.NotNull() java.lang.String, int);// .ctor(@org.jetbrains.annotations.NotNull() java.lang.String, int)
13+
14+
@test.pkg.A()
15+
public Foo();// .ctor()
16+
17+
@test.pkg.A()
18+
public Foo(int);// .ctor(int)
19+
}

0 commit comments

Comments
 (0)