added issue comments for compiler bug

This commit is contained in:
James Strachan
2011-12-23 16:08:12 +00:00
parent 8db24f12d9
commit 310a49eaff
2 changed files with 17 additions and 10 deletions
+3
View File
@@ -84,6 +84,9 @@ class H1() : BodyTag("h1")
class A() : BodyTag("a") { class A() : BodyTag("a") {
var href: String? = null var href: String? = null
/* /*
TODO this doesn't compile
see http://youtrack.jetbrains.net/issue/KT-866
var href : String var href : String
get() = attributes["href"] get() = attributes["href"]
set(value) { attributes["href"] = value } set(value) { attributes["href"] = value }
+14 -10
View File
@@ -9,6 +9,13 @@ import std.test.*
import java.util.* import java.util.*
/* /*
TODO generates compiler error
see: http://youtrack.jetbrains.net/issue/KT-866
val justBody = body {
+"Hello world"
}
fun result(args : List<String>) = fun result(args : List<String>) =
html { html {
head { head {
@@ -38,12 +45,6 @@ fun result(args : List<String>) =
} }
} }
} }
*/
/*
val justBody = body {
+"Hello world"
}
*/ */
class TemplateHtmlTest() : TestSupport() { class TemplateHtmlTest() : TestSupport() {
@@ -51,15 +52,18 @@ class TemplateHtmlTest() : TestSupport() {
} }
/* /*
fun testHtmlFUnction() { TODO: compiler bug
val text = result(arrayList("a", "b", "c")) see: http://youtrack.jetbrains.net/issue/KT-866
println(text)
}
fun testJustBody() { fun testJustBody() {
println(justBody) println(justBody)
} }
fun testHtmlFunction() {
val text = result(arrayList("a", "b", "c"))
println(text)
}
fun testEmbeddedFunction() { fun testEmbeddedFunction() {
val e = html { val e = html {
head { head {