KT-12504 Intention to make open class with only private constructors sealed (#1193)
* Intention to make open class with only private constructors sealed #KT-12504 Fixed * Fixed #KT-12504
This commit is contained in:
committed by
Dmitry Jemerov
parent
dd2a87dbf7
commit
a8da79a130
+2
@@ -0,0 +1,2 @@
|
||||
sealed class Klass(private val s: String) {
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
open class Klass private constructor(private val s: String) {
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts an open or abstract class with only private constructors to a sealed class
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user