0008e832d8
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
```
31 lines
605 B
Plaintext
Vendored
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 |