7c3c59de00
as a "nullability" annotation for primitive types
31 lines
807 B
Plaintext
Vendored
31 lines
807 B
Plaintext
Vendored
public abstract annotation MyAnnotation {
|
|
}
|
|
|
|
public abstract annotation MyAnnotation2 {
|
|
}
|
|
|
|
public abstract annotation MyAnnotation3 {
|
|
}
|
|
|
|
public abstract annotation MyAnnotation4 {
|
|
}
|
|
|
|
public abstract annotation MyAnnotation5 {
|
|
}
|
|
|
|
public final class Test1 {
|
|
@null private var bar: int
|
|
public final fun getBar() : int = UastEmptyExpression
|
|
public final fun setBar(@null p: int) : void = UastEmptyExpression
|
|
public fun Test1(@MyAnnotation @null bar: int) = UastEmptyExpression
|
|
}
|
|
|
|
public final class Test2 {
|
|
@MyAnnotation5 @null private var bar: int
|
|
@MyAnnotation
|
|
public final fun getBar() : int = UastEmptyExpression
|
|
@MyAnnotation2
|
|
public final fun setBar(@MyAnnotation3 @null p: int) : void = UastEmptyExpression
|
|
public fun Test2(@null bar: int) = UastEmptyExpression
|
|
}
|