Test data fixed

Useless code removed
Some naming refactored
This commit is contained in:
Andrey Breslav
2011-08-30 20:20:43 +04:00
parent 496549cab8
commit 2a67c4a591
12 changed files with 111 additions and 615 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class WithPC1(a : Int) {
this(s : String) : this(1) {}
this(b : Char) : this<error>("", 2)</error> {}
this(b : Char) : <error>this("", 2)</error> {}
this(b : Byte) : this(""), <error>this(1)</error> {}
}
+2 -1
View File
@@ -47,6 +47,7 @@ namespace null_safety {
fun Any.equals(other : Any?) : Boolean
fun Any?.equals1(other : Any?) : Boolean
fun Any.equals2(other : Any?) : Boolean
fun main(args: Array<String>) {
@@ -62,7 +63,7 @@ namespace null_safety {
command<warning>?.</warning>equals1(null)
val c = Command()
c<warning>?.</warning>equals(null)
c<warning>?.</warning>equals2(null)
if (command == null) 1
}
+1 -1
View File
@@ -16,7 +16,7 @@ class A() {
val z = foo()
}
fun foo() : Unit {
fun foo1() : Unit {
<error>this</error>
this<error>@a</error>
}
+1 -1
View File
@@ -22,7 +22,7 @@ fun test(l : java.util.List<Int>) {
Collections.emptyList()
Collections.singleton<Int>(1) : Set<Int>?
Collections.singleton<Int><error>(1.0)</error>
Collections.singleton<Int>(<error>1.0</error>)
<error>List</error><Int>