mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-26 08:31:31 +00:00
Test for the case when annotation arguments contain null in Java
This is an error in Java, but it may be present in the source by mistake
This commit is contained in:
11
compiler/testData/loadJava/sourceJava/NullInAnnotation.java
Normal file
11
compiler/testData/loadJava/sourceJava/NullInAnnotation.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package test;
|
||||
|
||||
public interface NullInAnnotation {
|
||||
@interface Ann {
|
||||
String a();
|
||||
String[] b();
|
||||
}
|
||||
|
||||
@Ann(a = null, b = {null})
|
||||
void foo();
|
||||
}
|
||||
Reference in New Issue
Block a user