From 7a7db291cc4f02cf3aa54e1751be89e0ab1f3dc8 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 30 Jan 2012 22:12:03 +0400 Subject: [PATCH] Test fixed (nullability) --- compiler/testData/diagnostics/tests/Builders.jet | 2 +- compiler/testData/diagnostics/tests/regressions/Jet72.jet | 6 +++--- templatelib/test/TemplateHtmlTest.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/testData/diagnostics/tests/Builders.jet b/compiler/testData/diagnostics/tests/Builders.jet index 5d2f38686de..6c0323f5377 100644 --- a/compiler/testData/diagnostics/tests/Builders.jet +++ b/compiler/testData/diagnostics/tests/Builders.jet @@ -132,7 +132,7 @@ class LI() : BodyTag("li") class P() : BodyTag("p") class H1() : BodyTag("h1") class A() : BodyTag("a") { - public var href : String + public var href : String? get() = attributes["href"] set(value) { attributes["href"] = value diff --git a/compiler/testData/diagnostics/tests/regressions/Jet72.jet b/compiler/testData/diagnostics/tests/regressions/Jet72.jet index 5ca74129847..0d105c7fe04 100644 --- a/compiler/testData/diagnostics/tests/regressions/Jet72.jet +++ b/compiler/testData/diagnostics/tests/regressions/Jet72.jet @@ -10,9 +10,9 @@ abstract class Item(val room: Object) { val items: ArrayList = ArrayList fun test(room : Object) { - for(val item: Item in items) { - if (item.room === room) { - System.out?.println("You see " + item.name) + for(val item: Item? in items) { + if (item?.room === room) { + System.out?.println("You see " + item?.name) } } } diff --git a/templatelib/test/TemplateHtmlTest.kt b/templatelib/test/TemplateHtmlTest.kt index 2191dffd246..b087a98cda0 100644 --- a/templatelib/test/TemplateHtmlTest.kt +++ b/templatelib/test/TemplateHtmlTest.kt @@ -37,7 +37,7 @@ html { // content generated by p { for (arg in args) - +arg + +arg } } }