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:
Toshiaki Kameyama
2017-07-19 20:36:36 +09:00
committed by Dmitry Jemerov
parent dd2a87dbf7
commit a8da79a130
23 changed files with 197 additions and 0 deletions
@@ -0,0 +1,2 @@
sealed class Klass(private val s: String) {
}
@@ -0,0 +1,2 @@
open class Klass private constructor(private val s: String) {
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts an open or abstract class with only private constructors to a sealed class
</body>
</html>