Files
kotlin-fork/plugins/power-assert/testData/codegen/cast/InstanceNotEquals.box.txt
T
Sergej Jaskiewicz 0008e832d8 [PowerAssert] Improve the accuracy of locating infix operator tokens
Use KotlinLexer to determine the correct offset of an infix operator
token instead of skipping whitespaces after the operator's LHS.

This fixes cases like this:

```
assert("Name"/*in*/in/*in*/listOf("Hello", "World"))
              |            |
              |            [Hello, World]
              false
```
2024-03-05 18:54:06 +00:00

31 lines
605 B
Plaintext
Vendored

Assertion failed
assert("Hello, world!" !is String)
|
false
Assertion failed
assert(" !is " !is String)
|
false
Assertion failed
assert(
" !is "
!is
|
false
String
)
Assertion failed
assert("Hello, world!"/*!is*/!is/*!is*/String)
|
false
Assertion failed
assert(("Hello, world!" !is String) !is Boolean)
| |
| false
false