Replies: 1 comment 2 replies
-
This is for muting an error in Android Studio. It seems IntelliJ parses Kotlin differently from the compiler. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm Kotlin compiler developer and now I'm working on the new version of compiler (K2). One part of my work is testing user projects. I found your project and encountered the failing on the following code (
@RequiresApi
annotation is not applicable to block statement):shadowsocks-android/core/src/main/java/com/github/shadowsocks/Core.kt
Lines 155 to 166 in 3d09ab4
Could you elaborate what did you mean by placing the annotation to the block? It looks like it has no effect and it's a bug in the old version of compiler (K1) since annotation for block is not allowed even by grammar: https://kotlinlang.org/docs/reference/grammar.html#block
Beta Was this translation helpful? Give feedback.
All reactions