File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 114
22true
3+ 10
34[@beans.LibraryAnnotation_1()]
45some text
56other text
Original file line number Diff line number Diff line change 1- class A {
1+ class A :
22 @ scala.beans.BeanProperty val x = 4
33 @ scala.beans.BooleanBeanProperty val y = true
44 @ scala.beans.BeanProperty var mutableOneWithLongName = " some text"
55
66 @ scala.beans.BeanProperty
77 @ beans.LibraryAnnotation_1
88 val retainingAnnotation = 5
9- }
9+
10+ trait T :
11+ @ scala.beans.BeanProperty val x : Int
12+
13+ class T1 extends T :
14+ override val x = 5
15+
16+ class T2 extends T1 :
17+ override val x = 10
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ public A run() throws ReflectiveOperationException{
55 A a = new A ();
66 System .out .println (a .getX ());
77 System .out .println (a .isY ());
8+ System .out .println (new T2 ().getX ());
89
910 System .out .println (Arrays .asList (a .getClass ().getMethod ("getRetainingAnnotation" ).getAnnotations ()));
1011
You can’t perform that action at this time.
0 commit comments