Test data fixed
Useless code removed Some naming refactored
This commit is contained in:
@@ -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> {}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class A() {
|
||||
val z = foo()
|
||||
}
|
||||
|
||||
fun foo() : Unit {
|
||||
fun foo1() : Unit {
|
||||
<error>this</error>
|
||||
this<error>@a</error>
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user