소스 검색

new intertype syntax: testcode

tags/V1_6_7
aclement 14 년 전
부모
커밋
f5cd023f4d

+ 11
- 0
tests/features167/intertype/Five.java 파일 보기

@@ -0,0 +1,11 @@
aspect Five {
intertype Target {
int i = 5;
}
public static void main(String[]argv) {
Target target = new Target();
System.out.println(target.i);
}
}

class Target {}

+ 10
- 0
tests/features167/intertype/Four.java 파일 보기

@@ -0,0 +1,10 @@
aspect X {
intertype Target {
int i = 5;
}
public static void main(String[]argv) {
Target target = new Target();
}
}

class Target {}

+ 6
- 0
tests/features167/intertype/Simple.java 파일 보기

@@ -0,0 +1,6 @@
aspect X {
intertype Target {
}
}

class Target {}

+ 13
- 0
tests/features167/intertype/Six.java 파일 보기

@@ -0,0 +1,13 @@
aspect Six {
intertype Target {
int i = 5;
String j = "hello";
}
public static void main(String[]argv) {
Target target = new Target();
System.out.println(target.j);
System.out.println(target.i);
}
}

class Target {}

+ 9
- 0
tests/features167/intertype/Three.java 파일 보기

@@ -0,0 +1,9 @@
aspect X {
intertype Target {
int i = 5;
}
public static void main(String[]argv) {
}
}

class Target {}

+ 7
- 0
tests/features167/intertype/Two.java 파일 보기

@@ -0,0 +1,7 @@
aspect X {
intertype Target {
int i = 5;
}
}

class Target {}

Loading…
취소
저장