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