added files for fields tests

This commit is contained in:
Sergey Ignatov
2011-11-14 14:39:44 +04:00
parent 548d89ef4e
commit 1e838a9dc3
7 changed files with 39 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
open class C(f : Foo?) {
var f : Foo?
{
this.f = f
}
}
+6
View File
@@ -0,0 +1,6 @@
open class C(f : Foo?) {
private var f : Foo?
{
this.f = f
}
}
@@ -0,0 +1,6 @@
open class C(f : Foo?) {
protected var f : Foo?
{
this.f = f
}
}
+6
View File
@@ -0,0 +1,6 @@
open class C(f : Foo?) {
public var f : Foo?
{
this.f = f
}
}
+6
View File
@@ -0,0 +1,6 @@
open class C(f : Foo?) {
val f : Foo? = Foo(1, 2)
{
this.f = f
}
}
+3
View File
@@ -0,0 +1,3 @@
open class C() {
var f : Foo? = Foo(1, 2)
}
@@ -0,0 +1,6 @@
open class C(f : Foo?) {
var f : Foo?
{
this.f = f
}
}