mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-02 08:31:31 +00:00
Support any constant expressions as annotation arguments
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package test;
|
||||
|
||||
public class AnnotationWithArithmeticExpressionInParam {
|
||||
public @interface Anno {
|
||||
int value();
|
||||
}
|
||||
|
||||
@Anno(2 * 8 + 13 * (239 - 237))
|
||||
public static class Class {}
|
||||
}
|
||||
Reference in New Issue
Block a user