"Create class from usage": add visibility to primary constructor if needed
#KT-29844 Fixed
This commit is contained in:
committed by
igoriakovlev
parent
b1e8238ea2
commit
efa981db36
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// "Create class 'Bar'" "true"
|
||||
// DISABLE-ERRORS
|
||||
internal class Foo
|
||||
|
||||
val bar = <caret>Bar(Foo())
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'Bar'" "true"
|
||||
// DISABLE-ERRORS
|
||||
internal class Foo
|
||||
|
||||
val bar = Bar(Foo())
|
||||
|
||||
class Bar internal constructor(foo: Foo) {
|
||||
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// "Create class 'Bar'" "true"
|
||||
// DISABLE-ERRORS
|
||||
private class Foo
|
||||
|
||||
val bar = <caret>Bar(Foo())
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'Bar'" "true"
|
||||
// DISABLE-ERRORS
|
||||
private class Foo
|
||||
|
||||
val bar = Bar(Foo())
|
||||
|
||||
class Bar private constructor(foo: Foo) {
|
||||
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// "Create class 'Bar'" "true"
|
||||
// DISABLE-ERRORS
|
||||
class Foo
|
||||
|
||||
val bar = <caret>Bar(Foo())
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'Bar'" "true"
|
||||
// DISABLE-ERRORS
|
||||
class Foo
|
||||
|
||||
val bar = Bar(Foo())
|
||||
|
||||
class Bar(foo: Foo) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user