KT-1256 Error highlighting in IDE should be less annoying
#KT-1256 fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
fun foo() =<!SYNTAX!><!>
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun<!SYNTAX, SYNTAX, SYNTAX, SYNTAX, SYNTAX!><!>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package c
|
||||
|
||||
val i =<!SYNTAX!><!>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package c
|
||||
|
||||
val i : String get() =<!SYNTAX!><!>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun test(a: Any) {
|
||||
when (a)<!SYNTAX!><!>
|
||||
}<!SYNTAX!><!>
|
||||
+1
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user