KT-1256 Error highlighting in IDE should be less annoying

#KT-1256 fixed
This commit is contained in:
Svetlana Isakova
2012-05-22 18:23:43 +04:00
parent 6a24d0cf6d
commit b63d3905f9
50 changed files with 382 additions and 338 deletions
@@ -0,0 +1 @@
fun foo() =<!SYNTAX!><!>
@@ -0,0 +1 @@
fun<!SYNTAX, SYNTAX, SYNTAX, SYNTAX, SYNTAX!><!>
@@ -0,0 +1,3 @@
package c
val i =<!SYNTAX!><!>
@@ -0,0 +1,3 @@
package c
val i : String get() =<!SYNTAX!><!>
@@ -0,0 +1,3 @@
fun test(a: Any) {
when (a)<!SYNTAX!><!>
}<!SYNTAX!><!>
@@ -0,0 +1 @@
<!NON_MEMBER_FUNCTION_NO_BODY!>fun bar()<!>
@@ -6,7 +6,7 @@ fun sum(a : IntArray) : Int {
<!UNRESOLVED_REFERENCE!>res<!> = 0
for (e in a)
res +=<!SYNTAX!><!>
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
}
fun main(args : Array<String>) {
test(0)
test(1, 1)
@@ -27,4 +27,4 @@ fun assertEquals<T>(actual : T?, expected : T?, message : Any? = null) {
else
throw AssertionError(message)
}
}
}