KT-650 Prohibit creating class without constructor

This commit is contained in:
svtk
2012-01-24 15:41:38 +04:00
parent ee5fcccda9
commit 70d0cd882b
43 changed files with 170 additions and 218 deletions
+3 -3
View File
@@ -2,11 +2,11 @@ package html
import java.util.*
abstract class Factory<T> {
abstract fun create() : T
trait Factory<T> {
fun create() : T
}
abstract class Element
trait Element
class TextElement(val text : String) : Element