Unused symbol: handle internal constructor used in Java #KT-27708 Fixed
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public class User {
|
||||
public static void main(String[] args) {
|
||||
new WithInternalConstructor();
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class WithInternalConstructor(val x: Int) {
|
||||
internal constructor() : this(42)
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public class User {
|
||||
public static void main(String[] args) {
|
||||
new WithInternalConstructor();
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class WithInternalConstructor(val x: Int) {
|
||||
internal <caret>constructor() : this(42)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"inspectionClass": "org.jetbrains.kotlin.idea.inspections.UnusedSymbolInspection",
|
||||
"problem": "none",
|
||||
"mainFile": "test.kt"
|
||||
}
|
||||
Reference in New Issue
Block a user