Error message moved to reference element

This commit is contained in:
Andrey Breslav
2011-10-13 15:46:09 +04:00
parent 9f288a493c
commit ed08a859fa
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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> {}
} }
+1 -1
View File
@@ -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)