KT-1256 Error highlighting in IDE should be less annoying
#KT-1256 fixed
This commit is contained in:
@@ -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