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") {
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 }
+14 -10
View File
@@ -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<String>) =
html {
head {
@@ -38,12 +45,6 @@ fun result(args : List<String>) =
}
}
}
*/
/*
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 {