anvil icon indicating copy to clipboard operation
anvil copied to clipboard

Generated anvil code `OPT_IN_USAGE_ERROR` suppression causes warnings in K2

Open ZacSweers opened this issue 1 year ago • 1 comments

From testing:

w: file:///...kt:6:3 This code uses error suppression for 'OPT_IN_USAGE_ERROR'. While it might compile and work, the compiler behavior is UNSPECIFIED and WON'T BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: https://kotl.in/issue

ZacSweers avatar Mar 12 '24 04:03 ZacSweers

Filed https://youtrack.jetbrains.com/issue/KT-66513

ZacSweers avatar Mar 12 '24 05:03 ZacSweers

They're going to remove the warning in RC2 👍

ZacSweers avatar Apr 11 '24 19:04 ZacSweers