diff --git a/templatelib/src/TemplateHtml.kt b/templatelib/src/TemplateHtml.kt
index 3edf78f2929..6cd4ab0782c 100644
--- a/templatelib/src/TemplateHtml.kt
+++ b/templatelib/src/TemplateHtml.kt
@@ -84,6 +84,9 @@ class H1() : BodyTag("h1")
class A() : BodyTag("a") {
var href: String? = null
/*
+ TODO this doesn't compile
+ see http://youtrack.jetbrains.net/issue/KT-866
+
var href : String
get() = attributes["href"]
set(value) { attributes["href"] = value }
diff --git a/templatelib/test/TemplateHtmlTest.kt b/templatelib/test/TemplateHtmlTest.kt
index 0167e7685e7..9477d2556c1 100644
--- a/templatelib/test/TemplateHtmlTest.kt
+++ b/templatelib/test/TemplateHtmlTest.kt
@@ -9,6 +9,13 @@ import std.test.*
import java.util.*
/*
+ TODO generates compiler error
+ see: http://youtrack.jetbrains.net/issue/KT-866
+
+val justBody = body {
+ +"Hello world"
+ }
+
fun result(args : List) =
html {
head {
@@ -38,12 +45,6 @@ fun result(args : List) =
}
}
}
- */
-
-/*
-val justBody = body {
- +"Hello world"
- }
*/
class TemplateHtmlTest() : TestSupport() {
@@ -51,15 +52,18 @@ class TemplateHtmlTest() : TestSupport() {
}
/*
- fun testHtmlFUnction() {
- val text = result(arrayList("a", "b", "c"))
- println(text)
- }
+ TODO: compiler bug
+ see: http://youtrack.jetbrains.net/issue/KT-866
fun testJustBody() {
println(justBody)
}
+ fun testHtmlFunction() {
+ val text = result(arrayList("a", "b", "c"))
+ println(text)
+ }
+
fun testEmbeddedFunction() {
val e = html {
head {