Eager resolve does not record class object bounds (which are unsupported anyways)

This commit is contained in:
Andrey Breslav
2014-03-06 15:29:21 +04:00
parent 9964ecc883
commit f7c5dc179c
6 changed files with 17 additions and 32 deletions
+5 -5
View File
@@ -14,12 +14,12 @@ import java.util.*
val children = ArrayList<Element>()
val attributes = HashMap<String, String>()
protected fun initTag<T : Element>(init : T.() -> Unit) : T
protected fun initTag<T : Element>(<warning>init</warning> : T.() -> Unit) : T
where <error>class object T : Factory<T></error>{
val tag = T.create()
tag.init()
children.add(tag)
return tag
val tag = <error>T</error>.<error>create</error>()
<error>tag</error>.<error>init</error>()
children.add(<error>tag</error>)
return <error>tag</error>
}
}