added issue comments for compiler bug
This commit is contained in:
@@ -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 }
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user