Error message moved to reference element
This commit is contained in:
@@ -23,7 +23,7 @@ class WithPC1(a : Int) {
|
|||||||
|
|
||||||
this(s : String) : this(1) {}
|
this(s : String) : this(1) {}
|
||||||
|
|
||||||
this(b : Char) : <error>this("", 2)</error> {}
|
this(b : Char) : <error>this</error>("", 2) {}
|
||||||
|
|
||||||
this(b : Byte) : this(""), <error>this(1)</error> {}
|
this(b : Byte) : this(""), <error>this(1)</error> {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class A
|
|||||||
fun A.plus(a : Any) {
|
fun A.plus(a : Any) {
|
||||||
|
|
||||||
1.foo()
|
1.foo()
|
||||||
true.<error>foo()</error>
|
true.<error>foo</error>()
|
||||||
|
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class WithPC1(a : Int) {
|
|||||||
|
|
||||||
this(s : String) : this(1) {}
|
this(s : String) : this(1) {}
|
||||||
|
|
||||||
this(b : Char) : <!NONE_APPLICABLE!>this("", 2)<!> {}
|
this(b : Char) : <!NONE_APPLICABLE!>this<!>("", 2) {}
|
||||||
|
|
||||||
this(b : Byte) : this(""), <!MANY_CALLS_TO_THIS!>this(1)<!> {}
|
this(b : Byte) : this(""), <!MANY_CALLS_TO_THIS!>this(1)<!> {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class A
|
|||||||
fun A.plus(a : Any) {
|
fun A.plus(a : Any) {
|
||||||
|
|
||||||
1.foo()
|
1.foo()
|
||||||
true.<!NONE_APPLICABLE!>foo()<!>
|
true.<!NONE_APPLICABLE!>foo<!>()
|
||||||
|
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
@@ -55,12 +55,12 @@ namespace null_safety {
|
|||||||
|
|
||||||
val command = parse("")
|
val command = parse("")
|
||||||
|
|
||||||
command<!UNSAFE_CALL!>.<!>foo
|
command.foo
|
||||||
|
|
||||||
command.equals(null)
|
command.equals(null)
|
||||||
command?.equals(null)
|
command?.equals(null)
|
||||||
command.equals1(null)
|
command.equals1(null)
|
||||||
command?.equals1(null)
|
command<!UNNECESSARY_SAFE_CALL!>?.<!>equals1(null)
|
||||||
|
|
||||||
val c = Command()
|
val c = Command()
|
||||||
c<!UNNECESSARY_SAFE_CALL!>?.<!>equals2(null)
|
c<!UNNECESSARY_SAFE_CALL!>?.<!>equals2(null)
|
||||||
|
|||||||
Reference in New Issue
Block a user